From 353153cef8fa6f715e80b48c25e5733a0c6c4c12 Mon Sep 17 00:00:00 2001 From: Richasy Date: Sat, 26 Mar 2022 14:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DXbox=E4=B8=8A=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=8C=89=E9=92=AE=E4=BC=9A=E7=9B=B4=E6=8E=A5=E9=80=80?= =?UTF-8?q?=E5=87=BA=E5=BA=94=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App/Pages/RootPage.xaml.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App/Pages/RootPage.xaml.cs b/src/App/Pages/RootPage.xaml.cs index 5a9d245a5..1bd9cf05c 100644 --- a/src/App/Pages/RootPage.xaml.cs +++ b/src/App/Pages/RootPage.xaml.cs @@ -139,9 +139,10 @@ private async void OnLoadedAsync(object sender, RoutedEventArgs e) private async void OnBackRequestedAsync(object sender, BackRequestedEventArgs e) { - if (await TryBackAsync()) + e.Handled = true; + if (!await TryBackAsync() && CoreViewModel.IsXbox) { - e.Handled = true; + App.Current.Exit(); } }