summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-11-15 19:30:38 +0000
committersr55 <[email protected]>2019-11-15 19:30:38 +0000
commit11146c96dcbb9e1aa533b01a9dac22c5f1b2a131 (patch)
treeede869f93e82f2908f61a502b90c84f9c28e5e54
parent6b456f00d3cb720e940959c6fc9963eacdec8bc3 (diff)
WinGui: Remove erroneous autoname error that wouldn't allow the user to use releative paths.
-rw-r--r--win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs b/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs
index b1033c8f9..23826a043 100644
--- a/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs
+++ b/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs
@@ -139,10 +139,13 @@ namespace HandBrakeWPF.Helpers
return false;
}
- // If there is an auto name path, use it...
- return userSettingService.GetUserSetting<string>(UserSettingConstants.AutoNamePath).Trim().StartsWith(Constants.SourcePath) ||
- (userSettingService.GetUserSetting<string>(UserSettingConstants.AutoNamePath).Contains(Constants.SourceFolderName) ||
- Directory.Exists(userSettingService.GetUserSetting<string>(UserSettingConstants.AutoNamePath).Trim()));
+ if (string.IsNullOrEmpty(
+ userSettingService.GetUserSetting<string>(UserSettingConstants.AutoNamePath).Trim()))
+ {
+ return false;
+ }
+
+ return true;
}
private static string GenerateDestinationFileName(EncodeTask task, IUserSettingService userSettingService, string sourceName, string dvdTitle, string combinedChapterTag, string createDate, string createTime)