diff --git a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs index 817018b49c..ed0190a237 100644 --- a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs +++ b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs @@ -225,6 +225,8 @@ namespace MediaBrowser.Common.Implementations Resolve().AddTasks(GetExports(false)); Task.Run(() => ConfigureAutoRunAtStartup()); + + ConfigurationManager.ConfigurationUpdated += ConfigurationManager_ConfigurationUpdated; }); } @@ -477,6 +479,17 @@ namespace MediaBrowser.Common.Implementations /// protected abstract string ProductShortcutPath { get; } + /// + /// Handles the ConfigurationUpdated event of the ConfigurationManager control. + /// + /// The source of the event. + /// The instance containing the event data. + /// + void ConfigurationManager_ConfigurationUpdated(object sender, EventArgs e) + { + ConfigureAutoRunAtStartup(); + } + /// /// Configures the auto run at startup. ///