summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-11-15 19:30:38 +0000
committersr55 <[email protected]>2019-11-15 22:31:56 +0000
commit5c4cee305d8d82910311d44f07cc6413d25beedf (patch)
treeede869f93e82f2908f61a502b90c84f9c28e5e54
parente1ddd2c01dd876601c0b8edb26cd3cb448f6df0a (diff)
WinGui: Remove erroneous autoname error that wouldn't allow the user to use releative paths.
(cherry picked from commit 11146c96dcbb9e1aa533b01a9dac22c5f1b2a131)
-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)