mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
ExpandFolderVariables before checking directory
This commit is contained in:
parent
66cac748f2
commit
391bfdb28d
1 changed files with 3 additions and 3 deletions
|
@ -234,13 +234,13 @@ public static string ScreenshotsParentFolder
|
|||
if (Settings != null && Settings.UseCustomScreenshotsPath)
|
||||
{
|
||||
string customPath = "";
|
||||
if (Directory.Exists(Settings.CustomScreenshotsPath))
|
||||
if (Directory.Exists(Helpers.ExpandFolderVariables(Settings.CustomScreenshotsPath)))
|
||||
customPath = Settings.CustomScreenshotsPath;
|
||||
else if (Directory.Exists(Settings.CustomScreenshotsPath2))
|
||||
else if (Directory.Exists(Helpers.ExpandFolderVariables(Settings.CustomScreenshotsPath2)))
|
||||
customPath = Settings.CustomScreenshotsPath2;
|
||||
|
||||
if (!string.IsNullOrEmpty(customPath))
|
||||
return Helpers.ExpandFolderVariables(customPath);
|
||||
return customPath;
|
||||
}
|
||||
|
||||
return Path.Combine(PersonalFolder, "Screenshots");
|
||||
|
|
Loading…
Reference in a new issue