aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-11-21 17:15:36 -0500
committerGitHub <noreply@github.com>2017-11-21 17:15:36 -0500
commitbfe88d50576ef98d99890cde6dedf84d3cf9044f (patch)
treee45797a21eaf7d5046cdab4bc362099512e24bae /Emby.Server.Implementations/EntryPoints/StartupWizard.cs
parent71ff88284be60fb39a7389e0c4990c94f2207ed4 (diff)
parent77695f8abed3156de04c6bb2496c14a2ab3d90a8 (diff)
Merge pull request #3034 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/StartupWizard.cs')
-rw-r--r--Emby.Server.Implementations/EntryPoints/StartupWizard.cs25
1 files changed, 10 insertions, 15 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
index 614c04fd2..8d1355795 100644
--- a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
+++ b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
@@ -3,6 +3,7 @@ using Emby.Server.Implementations.Browser;
using MediaBrowser.Controller;
using MediaBrowser.Controller.Plugins;
using MediaBrowser.Model.Logging;
+using MediaBrowser.Controller.Configuration;
namespace Emby.Server.Implementations.EntryPoints
{
@@ -20,15 +21,13 @@ namespace Emby.Server.Implementations.EntryPoints
/// </summary>
private readonly ILogger _logger;
- /// <summary>
- /// Initializes a new instance of the <see cref="StartupWizard" /> class.
- /// </summary>
- /// <param name="appHost">The app host.</param>
- /// <param name="logger">The logger.</param>
- public StartupWizard(IServerApplicationHost appHost, ILogger logger)
+ private IServerConfigurationManager _config;
+
+ public StartupWizard(IServerApplicationHost appHost, ILogger logger, IServerConfigurationManager config)
{
_appHost = appHost;
_logger = logger;
+ _config = config;
}
/// <summary>
@@ -38,16 +37,12 @@ namespace Emby.Server.Implementations.EntryPoints
{
if (_appHost.IsFirstRun)
{
- LaunchStartupWizard();
+ BrowserLauncher.OpenDashboardPage("wizardstart.html", _appHost);
+ }
+ else if (_config.Configuration.IsStartupWizardCompleted)
+ {
+ BrowserLauncher.OpenDashboardPage("index.html", _appHost);
}
- }
-
- /// <summary>
- /// Launches the startup wizard.
- /// </summary>
- private void LaunchStartupWizard()
- {
- BrowserLauncher.OpenDashboardPage("wizardstart.html", _appHost);
}
/// <summary>