Skip to content

Commit

Permalink
Fix issue with closing minimized main window
Browse files Browse the repository at this point in the history
  • Loading branch information
gratianlup committed Nov 6, 2024
1 parent 153b476 commit 96d8f4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ProfileExplorerUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ private async void MainWindow_Closing(object sender, CancelEventArgs e) {
return;
}

// If the window is minimized, restore it first, otherwise
// the message box will not be visible even after restoring the window
// and the entire UI is blocked.
if (WindowState == WindowState.Minimized) {
WindowState = WindowState.Normal;
}

if (sessionState_.Info.IsFileSession) {
using var centerForm = new DialogCenteringHelper(this);

Expand Down

0 comments on commit 96d8f4e

Please sign in to comment.