We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3164c commit 62783f0Copy full SHA for 62783f0
src/ExtensionManager.UI/DialogService.cs
@@ -1,7 +1,4 @@
1
-using System.Runtime.Remoting.Channels;
2
-
3
using ExtensionManager.Manifest;
4
-using ExtensionManager.UI.Utils;
5
using ExtensionManager.UI.ViewModels;
6
using ExtensionManager.UI.Views;
7
using ExtensionManager.UI.Worker;
@@ -114,7 +111,16 @@ static void OnUIThread(object viewModel)
114
111
DataContext = viewModel
115
112
};
116
113
117
- window.ShowDialog();
+ try
+ {
+ window.ShowDialog();
+ }
118
+ catch
119
120
+ window.Close();
121
+
122
+ throw;
123
124
}
125
126
0 commit comments