From c19f938b480615ab48bd432e332c0b7809949b09 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 22 Feb 2019 19:46:23 +0000 Subject: [PATCH] WinGui: Reinstate "Resume" vs "Start" encode on the Main screen. Fixes #1919 --- .../HandBrakeWPF/Properties/Resources.Designer.cs | 9 +++++++++ win/CS/HandBrakeWPF/Properties/Resources.resx | 3 +++ win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 13 ++++++++++++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs index 920e3b625..f096724a5 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs @@ -1381,6 +1381,15 @@ namespace HandBrakeWPF.Properties { } } + /// + /// Looks up a localized string similar to Resume Encode. + /// + public static string Main_ResumeEncode { + get { + return ResourceManager.GetString("Main_ResumeEncode", resourceCulture); + } + } + /// /// Looks up a localized string similar to Scan Cancelled.. /// diff --git a/win/CS/HandBrakeWPF/Properties/Resources.resx b/win/CS/HandBrakeWPF/Properties/Resources.resx index 18ccf3772..15388e182 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.resx +++ b/win/CS/HandBrakeWPF/Properties/Resources.resx @@ -1909,4 +1909,7 @@ This will not impact any of the software encoders. Apply + + Resume Encode + \ No newline at end of file diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index ddabf080e..9c054b9dd 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1009,7 +1009,18 @@ namespace HandBrakeWPF.ViewModels /// /// Gets the start label. /// - public string StartLabel => this.queueProcessor.Count > 0 ? Resources.Main_StartQueue : Resources.Main_Start; + public string StartLabel + { + get + { + if (this.queueProcessor.EncodeService.IsPasued) + { + return Resources.Main_ResumeEncode; + } + + return this.queueProcessor.Count > 0 ? Resources.Main_StartQueue : Resources.Main_Start; + } + } /// /// Gets or sets a value indicating whether has source. -- 2.40.0