diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-10 21:52:15 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-10 21:52:15 -0400 |
| commit | 5e1f4c01b87d3824493265280d05f56ef37cc1af (patch) | |
| tree | 3b1b870d61640ffdcfd80b2701b9c363e1515b13 | |
| parent | c11a61e133c8172f823f24ccd2b6b7749364c866 (diff) | |
added back IsFirstRun
| -rw-r--r-- | MediaBrowser.Common/Plugins/BasePlugin.cs | 7 | ||||
| -rw-r--r-- | MediaBrowser.Common/Plugins/IPlugin.cs | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/MediaBrowser.Common/Plugins/BasePlugin.cs b/MediaBrowser.Common/Plugins/BasePlugin.cs index f0f5337cc..ca2891734 100644 --- a/MediaBrowser.Common/Plugins/BasePlugin.cs +++ b/MediaBrowser.Common/Plugins/BasePlugin.cs @@ -35,6 +35,12 @@ namespace MediaBrowser.Common.Plugins public abstract string Name { get; } /// <summary> + /// Gets a value indicating whether this instance is first run. + /// </summary> + /// <value><c>true</c> if this instance is first run; otherwise, <c>false</c>.</value> + public bool IsFirstRun { get; private set; } + + /// <summary> /// Gets the description. /// </summary> /// <value>The description.</value> @@ -257,7 +263,6 @@ namespace MediaBrowser.Common.Plugins /// <summary> /// Saves the current configuration to the file system /// </summary> - /// <exception cref="System.InvalidOperationException">Cannot call Plugin.SaveConfiguration from the UI.</exception> public virtual void SaveConfiguration() { lock (_configurationSaveLock) diff --git a/MediaBrowser.Common/Plugins/IPlugin.cs b/MediaBrowser.Common/Plugins/IPlugin.cs index c3b34869f..5a1252d1c 100644 --- a/MediaBrowser.Common/Plugins/IPlugin.cs +++ b/MediaBrowser.Common/Plugins/IPlugin.cs @@ -45,6 +45,12 @@ namespace MediaBrowser.Common.Plugins string AssemblyFileName { get; } /// <summary> + /// Gets a value indicating whether this instance is first run. + /// </summary> + /// <value><c>true</c> if this instance is first run; otherwise, <c>false</c>.</value> + bool IsFirstRun { get; } + + /// <summary> /// Gets the last date modified of the configuration /// </summary> /// <value>The configuration date last modified.</value> |
