From 626d607895e2b4b2a3d6929a20b4359d1e7f674f Mon Sep 17 00:00:00 2001 From: RKrom Date: Tue, 29 Jul 2014 15:51:59 +0200 Subject: [PATCH] Enabled the OneNote destination. --- .../releases/additional_files/readme.txt.template | 1 + GreenshotPlugin/Core/CoreConfiguration.cs | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Greenshot/releases/additional_files/readme.txt.template b/Greenshot/releases/additional_files/readme.txt.template index fe3dc29cf..5fda45f00 100644 --- a/Greenshot/releases/additional_files/readme.txt.template +++ b/Greenshot/releases/additional_files/readme.txt.template @@ -15,6 +15,7 @@ Features: * Editor: a resize effect with settings window has been added. * Editor: a settings window for the torn-edge effect has been added. * Editor: a settings window for the drop shadow effect has been added. +* OneNote: Enabled and enhanced the OneNote destination, so we can test this and see if it's worth releasing. Bugs resolved: * BUG-1559, BUG-1643: Repeating hotkeys are now prevented. diff --git a/GreenshotPlugin/Core/CoreConfiguration.cs b/GreenshotPlugin/Core/CoreConfiguration.cs index 20155b965..17ce704b9 100644 --- a/GreenshotPlugin/Core/CoreConfiguration.cs +++ b/GreenshotPlugin/Core/CoreConfiguration.cs @@ -167,7 +167,7 @@ namespace GreenshotPlugin.Core { public List IncludePlugins; [IniProperty("ExcludePlugins", Description="Comma separated list of Plugins which are NOT allowed.")] public List ExcludePlugins; - [IniProperty("ExcludeDestinations", Description = "Comma separated list of destinations which should be disabled.", DefaultValue = "OneNote")] + [IniProperty("ExcludeDestinations", Description = "Comma separated list of destinations which should be disabled.")] public List ExcludeDestinations; [IniProperty("UpdateCheckInterval", Description="How many days between every update check? (0=no checks)", DefaultValue="1")] @@ -357,6 +357,16 @@ namespace GreenshotPlugin.Core { OutputFileAutoReduceColors = false; } + // Enable OneNote if upgrading from 1.1 + if(ExcludeDestinations != null && ExcludeDestinations.Contains("OneNote")) { + if(LastSaveWithVersion != null && LastSaveWithVersion.StartsWith("1.1")) { + ExcludeDestinations.Remove("OneNote"); + } else { + // TODO: Remove with the release + ExcludeDestinations.Remove("OneNote"); + } + } + if (OutputDestinations == null) { OutputDestinations = new List(); }