aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/UI/BaseApplication.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-19 18:50:54 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-19 18:50:54 -0400
commit03c9523001295e466cf508802712e13bf59fe7fa (patch)
tree409f5c886c22f868eafb44c6d5a46d1c8c75da39 /MediaBrowser.Common/UI/BaseApplication.cs
parentd54c6d8bf63c13c0b47f76fd9f40fec614fbd689 (diff)
Comments
Diffstat (limited to 'MediaBrowser.Common/UI/BaseApplication.cs')
-rw-r--r--MediaBrowser.Common/UI/BaseApplication.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/MediaBrowser.Common/UI/BaseApplication.cs b/MediaBrowser.Common/UI/BaseApplication.cs
index a6bc7f7e4..6285ca7ae 100644
--- a/MediaBrowser.Common/UI/BaseApplication.cs
+++ b/MediaBrowser.Common/UI/BaseApplication.cs
@@ -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);
}
}