Skip to content

Commit

Permalink
set main window foreground after closing notice window
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Sep 25, 2024
1 parent feca6bd commit 1fce026
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Starward/Pages/GameLauncherPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ private void RegisterMessageHandler()
_ = UpdateGameNoticesAlertAsync();
});
WeakReferenceMessenger.Default.Register<GameNoticeRedHotDisabledChanged>(this, (_, _) => _ = UpdateGameNoticesAlertAsync());
WeakReferenceMessenger.Default.Register<GameNoticesWindowClosedMessage>(this, (_, _) => _ = UpdateGameNoticesAlertAsync());
WeakReferenceMessenger.Default.Register<GameNoticesWindowClosedMessage>(this, (_, _) =>
{
MainWindow.Current.Show();
_ = UpdateGameNoticesAlertAsync();
});
WeakReferenceMessenger.Default.Register<InstallGameFinishedMessage>(this, (_, m) =>
{
if (m.GameBiz == CurrentGameBiz)
Expand Down

0 comments on commit 1fce026

Please sign in to comment.