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 cc1e6dd commit bf259dcCopy full SHA for bf259dc
Flow.Launcher/App.xaml.cs
@@ -138,6 +138,11 @@ private async void OnStartup(object sender, StartupEventArgs e)
138
{
139
await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () =>
140
141
+ // Because new message box api uses MessageBoxEx window,
142
+ // if it is created and closed before main window is created, it will cause the application to exit.
143
+ // So set to OnExplicitShutdown to prevent the application from shutting down before main window is created
144
+ Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;
145
+
146
Log.SetLogLevel(_settings.LogLevel);
147
148
Ioc.Default.GetRequiredService<Portable>().PreStartCleanUpAfterPortabilityUpdate();
0 commit comments