diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs index 0be6a26a7..5513d37ed 100644 --- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs @@ -107,6 +107,7 @@ namespace HandBrakeWPF.ViewModels private bool showPrePostFilenameBox;
private bool whenDonePerformActionImmediately;
private bool useDarkTheme;
+ private bool alwaysUseDefaultPath;
#endregion
@@ -688,6 +689,21 @@ namespace HandBrakeWPF.ViewModels }
}
+ public bool AlwaysUseDefaultPath
+ {
+ get => this.alwaysUseDefaultPath;
+ set
+ {
+ if (value == this.alwaysUseDefaultPath)
+ {
+ return;
+ }
+
+ this.alwaysUseDefaultPath = value;
+ this.NotifyOfPropertyChange(() => this.AlwaysUseDefaultPath);
+ }
+ }
+
#endregion
#region Preview
@@ -1476,6 +1492,8 @@ namespace HandBrakeWPF.ViewModels this.SelectedCollisionBehaviour = this.userSettingService.GetUserSetting<int>(UserSettingConstants.AutonameFileCollisionBehaviour);
this.PrePostFilenameText = this.userSettingService.GetUserSetting<string>(UserSettingConstants.AutonameFilePrePostString);
+ this.AlwaysUseDefaultPath = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.AlwaysUseDefaultPath);
+
// #############################
// Picture Tab
// #############################
@@ -1621,6 +1639,7 @@ namespace HandBrakeWPF.ViewModels this.userSettingService.SetUserSetting(UserSettingConstants.FileOverwriteBehaviour, this.SelectedOverwriteBehaviour);
this.userSettingService.SetUserSetting(UserSettingConstants.AutonameFileCollisionBehaviour, this.SelectedCollisionBehaviour);
this.userSettingService.SetUserSetting(UserSettingConstants.AutonameFilePrePostString, this.PrePostFilenameText);
+ this.userSettingService.SetUserSetting(UserSettingConstants.AlwaysUseDefaultPath, this.AlwaysUseDefaultPath);
/* Previews */
this.userSettingService.SetUserSetting(UserSettingConstants.VLCPath, this.VLCPath);
|