diff --git a/GreenshotPlugin/Core/CoreConfiguration.cs b/GreenshotPlugin/Core/CoreConfiguration.cs index dff34dda4..60f2021ee 100644 --- a/GreenshotPlugin/Core/CoreConfiguration.cs +++ b/GreenshotPlugin/Core/CoreConfiguration.cs @@ -407,6 +407,17 @@ namespace GreenshotPlugin.Core { return base.PreCheckValue(propertyName, propertyValue); } + /// + /// This method will be called before writing the configuration + /// + public override void BeforeSave() { + try { + // Store version, this can be used later to fix settings after an update + LastSaveWithVersion = Assembly.GetEntryAssembly().GetName().Version.ToString(); + } catch { + } + } + /// /// This method will be called after reading the configuration, so eventually some corrections can be made ///