File tree Expand file tree Collapse file tree
sources/launcher/Stride.Launcher Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ public override void OnFrameworkInitializationCompleted()
4444 DataContext = InitializeMainViewModel ( )
4545 } ;
4646 }
47-
48- base . OnFrameworkInitializationCompleted ( ) ;
4947 }
5048
5149 private static MainViewModel InitializeMainViewModel ( )
@@ -64,3 +62,9 @@ private static IViewModelServiceProvider InitializeServiceProvider()
6462 return new ViewModelServiceProvider ( services ) ;
6563 }
6664}
65+
66+ // This app is used for the crash report or for the notification when an instance is already running
67+ internal sealed class MinimalApp : App
68+ {
69+ public override void OnFrameworkInitializationCompleted ( ) { }
70+ }
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ async Task AppMainAsync(CancellationTokenSource cts)
101101 static void DisplayError ( string message , MessageBoxImage image )
102102 {
103103 // Note: because we are not running from the main loop, we have to start a new app
104- Program . RunNewApp < Application > ( AppMain ) ;
104+ Program . RunNewApp < MinimalApp > ( AppMain ) ;
105105
106106 CancellationToken AppMain ( Application app )
107107 {
@@ -194,7 +194,7 @@ static async Task<bool> DisplayMessageAsync(string message)
194194
195195 private static void CrashReport ( CrashReportArgs args )
196196 {
197- Program . RunNewApp < Application > ( AppMain ) ;
197+ Program . RunNewApp < MinimalApp > ( AppMain ) ;
198198
199199 CancellationToken AppMain ( Application app )
200200 {
You can’t perform that action at this time.
0 commit comments