Enabled the OneNote destination.

This commit is contained in:
RKrom 2014-07-29 15:51:59 +02:00
commit 626d607895
2 changed files with 12 additions and 1 deletions

View file

@ -167,7 +167,7 @@ namespace GreenshotPlugin.Core {
public List<string> IncludePlugins;
[IniProperty("ExcludePlugins", Description="Comma separated list of Plugins which are NOT allowed.")]
public List<string> 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<string> 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<string>();
}