Skip to content

Commit c2cdaec

Browse files
committed
close loading dilaogs if unhandled exception happens
1 parent 1ac1540 commit c2cdaec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/UniGetUI/App.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ private void RegisterErrorHandling()
159159
Button button = new() { Content = CoreTools.Translate("WingetUI Log"), };
160160
button.Click += (sender, args) => MainWindow.NavigationPage.UniGetUILogs_Click(sender, args);
161161
MainWindow.ErrorBanner.ActionButton = button;
162+
DialogHelper.HideAllLoadingDialogs();
162163
e.Handled = true;
163164
}
164165
};
@@ -201,6 +202,7 @@ private void RegisterErrorHandling()
201202
button.Click += (s, a) => MainWindow.NavigationPage.UniGetUILogs_Click(s, a);
202203
}
203204
MainWindow.ErrorBanner.ActionButton = button;
205+
DialogHelper.HideAllLoadingDialogs();
204206
}
205207
catch (Exception ex)
206208
{

0 commit comments

Comments
 (0)