mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Comments
This commit is contained in:
parent
d54c6d8bf6
commit
03c9523001
@ -16,6 +16,7 @@ namespace MediaBrowser.Common.UI
|
||||
|
||||
protected async override void OnStartup(StartupEventArgs e)
|
||||
{
|
||||
// Without this the app will shutdown after the splash screen closes
|
||||
this.ShutdownMode = ShutdownMode.OnExplicitShutdown;
|
||||
|
||||
await LoadKernel();
|
||||
@ -48,6 +49,8 @@ namespace MediaBrowser.Common.UI
|
||||
{
|
||||
MessageBox.Show("There was an error launching Media Browser: " + ex.Message);
|
||||
splash.Close();
|
||||
|
||||
// Shutdown the app with an error code
|
||||
Shutdown(1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user