diff --git a/MediaBrowser.Common/Plugins/BasePlugin.cs b/MediaBrowser.Common/Plugins/BasePlugin.cs index f0f5337cc1..ca2891734e 100644 --- a/MediaBrowser.Common/Plugins/BasePlugin.cs +++ b/MediaBrowser.Common/Plugins/BasePlugin.cs @@ -34,6 +34,12 @@ namespace MediaBrowser.Common.Plugins /// The name. public abstract string Name { get; } + /// + /// Gets a value indicating whether this instance is first run. + /// + /// true if this instance is first run; otherwise, false. + public bool IsFirstRun { get; private set; } + /// /// Gets the description. /// @@ -257,7 +263,6 @@ namespace MediaBrowser.Common.Plugins /// /// Saves the current configuration to the file system /// - /// Cannot call Plugin.SaveConfiguration from the UI. public virtual void SaveConfiguration() { lock (_configurationSaveLock) diff --git a/MediaBrowser.Common/Plugins/IPlugin.cs b/MediaBrowser.Common/Plugins/IPlugin.cs index c3b34869f0..5a1252d1cd 100644 --- a/MediaBrowser.Common/Plugins/IPlugin.cs +++ b/MediaBrowser.Common/Plugins/IPlugin.cs @@ -44,6 +44,12 @@ namespace MediaBrowser.Common.Plugins /// The name of the assembly file. string AssemblyFileName { get; } + /// + /// Gets a value indicating whether this instance is first run. + /// + /// true if this instance is first run; otherwise, false. + bool IsFirstRun { get; } + /// /// Gets the last date modified of the configuration ///