aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
diff options
context:
space:
mode:
authorstefan <stefan@hegedues.at>2018-09-12 19:26:21 +0200
committerstefan <stefan@hegedues.at>2018-09-12 19:26:21 +0200
commit48facb797ed912e4ea6b04b17d1ff190ac2daac4 (patch)
tree8dae77a31670a888d733484cb17dd4077d5444e8 /Emby.Server.Implementations/EntryPoints/StartupWizard.cs
parentc32d8656382a0eacb301692e0084377fc433ae9b (diff)
Update to 3.5.2 and .net core 2.1
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