From 5e1f4c01b87d3824493265280d05f56ef37cc1af Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 10 Apr 2013 21:52:15 -0400 Subject: [PATCH] added back IsFirstRun --- MediaBrowser.Common/Plugins/BasePlugin.cs | 7 ++++++- MediaBrowser.Common/Plugins/IPlugin.cs | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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 ///