summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-03-16 20:26:05 +0000
committersr55 <[email protected]>2017-03-16 20:26:14 +0000
commite359b4e1fceb25ad9e9bd7f9543e50339d688e7a (patch)
tree01bea01e99706e6b8efdc52dfa5805575f214ef7 /win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
parentcdf2b1d0efe8265b66df05f428cf01ff67bb4621 (diff)
WinGui: Add option to show progress percentage in app title bar, and the task tray header and system tray tooltip. (Configured via preferences). #630
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs24
1 files changed, 23 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
index d261ff16b..da9a0e8b5 100644
--- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
@@ -92,7 +92,9 @@ namespace HandBrakeWPF.ViewModels
private bool showQueueInline;
private bool pauseOnLowDiskspace;
private long pauseOnLowDiskspaceLevel;
- private bool useQsvDecodeForNonQsvEnc;
+ private bool useQsvDecodeForNonQsvEnc;
+
+ private bool showStatusInTitleBar;
#endregion
@@ -348,6 +350,24 @@ namespace HandBrakeWPF.ViewModels
}
}
+
+ /// <summary>
+ /// Gets or sets a value indicating whether to show encode status in the tile bar.
+ /// </summary>
+ public bool ShowStatusInTitleBar
+ {
+ get
+ {
+ return this.showStatusInTitleBar;
+ }
+ set
+ {
+ if (value == this.showStatusInTitleBar) return;
+ this.showStatusInTitleBar = value;
+ this.NotifyOfPropertyChange(() => this.ShowStatusInTitleBar);
+ }
+ }
+
#endregion
#region Output Files
@@ -1221,6 +1241,7 @@ namespace HandBrakeWPF.ViewModels
this.Arguments = this.userSettingService.GetUserSetting<string>(UserSettingConstants.SendFileToArgs) ?? string.Empty;
this.ResetWhenDoneAction = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.ResetWhenDoneAction);
this.ShowQueueInline = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.ShowQueueInline);
+ this.ShowStatusInTitleBar = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.ShowStatusInTitleBar);
// #############################
// Output Settings
@@ -1370,6 +1391,7 @@ namespace HandBrakeWPF.ViewModels
this.userSettingService.SetUserSetting(UserSettingConstants.SendFileToArgs, this.Arguments);
this.userSettingService.SetUserSetting(UserSettingConstants.ResetWhenDoneAction, this.ResetWhenDoneAction);
this.userSettingService.SetUserSetting(UserSettingConstants.ShowQueueInline, this.ShowQueueInline);
+ this.userSettingService.SetUserSetting(UserSettingConstants.ShowStatusInTitleBar, this.ShowStatusInTitleBar);
/* Output Files */
this.userSettingService.SetUserSetting(UserSettingConstants.AutoNaming, this.AutomaticallyNameFiles);