summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-01-24 21:48:45 +0000
committersr55 <[email protected]>2013-01-24 21:48:45 +0000
commite8eaebade8cd06cec7f8338c122fcb169471308e (patch)
tree381506a3b36cd503d66848343efcd5fe709660fd /win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
parent8a1e2bb2cb238e1a9c981684d81f9ad86045e11a (diff)
WinGui: Remember the last used preview duration.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5201 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
index 0f964846f..7ebb88619 100644
--- a/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
@@ -95,6 +95,7 @@ namespace HandBrakeWPF.ViewModels
this.Duration = 30;
UseSystemDefaultPlayer = userSettingService.GetUserSetting<bool>(UserSettingConstants.DefaultPlayer);
+ this.Duration = userSettingService.GetUserSetting<int>(UserSettingConstants.LastPreviewDuration);
}
#endregion
@@ -381,6 +382,7 @@ namespace HandBrakeWPF.ViewModels
this.encodeService.EncodeStatusChanged += this.encodeService_EncodeStatusChanged;
this.encodeService.Start((QueueTask)state, false);
+ this.userSettingService.SetUserSetting(UserSettingConstants.LastPreviewDuration, this.Duration);
}
#endregion