aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/StartupWizard.cs')
-rw-r--r--Emby.Server.Implementations/EntryPoints/StartupWizard.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
index 103b4b321..6d73f98ad 100644
--- a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
+++ b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
@@ -1,5 +1,4 @@
-using System;
-using Emby.Server.Implementations.Browser;
+using Emby.Server.Implementations.Browser;
using MediaBrowser.Controller;
using MediaBrowser.Controller.Plugins;
using MediaBrowser.Model.Logging;
@@ -40,17 +39,17 @@ namespace Emby.Server.Implementations.EntryPoints
return;
}
- if (_appHost.IsFirstRun)
+ if (!_config.Configuration.IsStartupWizardCompleted)
{
- BrowserLauncher.OpenDashboardPage("wizardstart.html", _appHost);
+ BrowserLauncher.OpenWebApp(_appHost);
}
- else if (_config.Configuration.IsStartupWizardCompleted && _config.Configuration.AutoRunWebApp)
+ else if (_config.Configuration.AutoRunWebApp)
{
var options = ((ApplicationHost)_appHost).StartupOptions;
if (!options.ContainsOption("-noautorunwebapp"))
{
- BrowserLauncher.OpenDashboardPage("index.html", _appHost);
+ BrowserLauncher.OpenWebApp(_appHost);
}
}
}
@@ -60,7 +59,6 @@ namespace Emby.Server.Implementations.EntryPoints
/// </summary>
public void Dispose()
{
- GC.SuppressFinalize(this);
}
}
} \ No newline at end of file