mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Fix for missing LastSaveWithVersion, this is needed to recognize with what version the configuration was stored. [skip ci]
This commit is contained in:
parent
63412d3b9e
commit
71ff4c6286
1 changed files with 11 additions and 0 deletions
|
@ -407,6 +407,17 @@ namespace GreenshotPlugin.Core {
|
|||
return base.PreCheckValue(propertyName, propertyValue);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method will be called before writing the configuration
|
||||
/// </summary>
|
||||
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 {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method will be called after reading the configuration, so eventually some corrections can be made
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue