summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs
diff options
context:
space:
mode:
authorSebastian Janning <[email protected]>2018-04-10 15:41:04 +0200
committerScott <[email protected]>2018-04-10 19:03:29 +0100
commit6f799bbdf4ed34636fe9fb4cec6e17fe13ffbcae (patch)
treee4796260272de5606cceedd982493ed8fbc0cf19 /win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs
parentb463d33a4ed4c9da5fb6432e7fb7e08422fc1aad (diff)
option to disable preview on summary tab (issue #1267)
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs
index ac12baf2c..e2a294009 100644
--- a/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs
@@ -48,6 +48,8 @@ namespace HandBrakeWPF.ViewModels
private bool isPreviousPreviewControlVisible;
private bool isNextPreviewControlVisible;
+ private bool showPreview;
+
public SummaryViewModel(IScan scanService, IUserSettingService userSettingService)
{
this.scanService = scanService;
@@ -174,6 +176,20 @@ namespace HandBrakeWPF.ViewModels
}
}
+ public bool ShowPreview
+ {
+ get
+ {
+ return this.showPreview;
+ }
+ set
+ {
+ if (value == this.showPreview) return;
+ this.showPreview = value;
+ this.NotifyOfPropertyChange(() => this.ShowPreview);
+ }
+ }
+
#endregion
#region Task Properties
@@ -492,6 +508,8 @@ namespace HandBrakeWPF.ViewModels
// Preview
this.PreviewInfo = string.Format(ResourcesUI.SummaryView_PreviewInfo, this.selectedPreview, this.userSettingService.GetUserSetting<int>(UserSettingConstants.PreviewScanCount));
this.NotifyOfPropertyChange(() => this.PreviewInfo);
+
+ this.ShowPreview = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.ShowPreviewOnSummaryTab);
}
private string GetFilterDescription()