Skip to content

Commit

Permalink
Bring to front before showing FirstShutdownTip
Browse files Browse the repository at this point in the history
  • Loading branch information
KimihikoAkayasaki committed Apr 1, 2023
1 parent cd34f92 commit 3537c43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Amethyst/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,10 @@ private async void Window_Closed(object sender, WindowEventArgs args)
// Show the close tip (if not shown yet)
case false when
!AppData.Settings.FirstShutdownTipShown:
// Bring up the window
Shared.Main.Window.Activate();

// Show the tip
ShutdownTeachingTip.IsOpen = true;

AppData.Settings.FirstShutdownTipShown = true;
Expand Down
2 changes: 1 addition & 1 deletion K2CrashHandler/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public MainWindow()

// (Second try ...but first)
Activate();

// And show it (forcibly)
SetForegroundWindow(WindowNative
.GetWindowHandle(this));
Expand Down

0 comments on commit 3537c43

Please sign in to comment.