Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

修复Xbox上返回按钮会直接退出应用的问题 #899

Merged
merged 1 commit into from
Mar 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/App/Pages/RootPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down