BUG-1992: Fixed a problem with the OutputFilePath & OutputFileAsFullpath configuration values when using the Greenshot configuration on different PC's.

This commit is contained in:
Robin 2016-07-13 17:33:28 +02:00
commit 9e88119fd9

View file

@ -518,7 +518,16 @@ namespace GreenshotPlugin.Core {
if (WebRequestReadWriteTimeout < 1) {
WebRequestReadWriteTimeout = 100;
}
}
// Added for BUG-1992, reset the OutputFilePath / OutputFileAsFullpath if they don't exist (e.g. the configuration is used on a different PC)
if (!Directory.Exists(OutputFilePath))
{
OutputFilePath = GetDefault(nameof(OutputFilePath)) as string;
}
if (!File.Exists(OutputFileAsFullpath))
{
OutputFileAsFullpath = GetDefault(nameof(OutputFileAsFullpath)) as string;
}
}
}
}