diff options
author | sr55 <[email protected]> | 2019-11-15 19:30:38 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-11-15 22:31:56 +0000 |
commit | 5c4cee305d8d82910311d44f07cc6413d25beedf (patch) | |
tree | ede869f93e82f2908f61a502b90c84f9c28e5e54 /win | |
parent | e1ddd2c01dd876601c0b8edb26cd3cb448f6df0a (diff) |
WinGui: Remove erroneous autoname error that wouldn't allow the user to use releative paths.
(cherry picked from commit 11146c96dcbb9e1aa533b01a9dac22c5f1b2a131)
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs | 11 |
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)
|