]> granicus.if.org Git - handbrake/commitdiff
WinGui: Reinstate "Resume" vs "Start" encode on the Main screen. Fixes #1919
authorsr55 <sr55.hb@outlook.com>
Fri, 22 Feb 2019 19:46:23 +0000 (19:46 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 22 Feb 2019 19:46:23 +0000 (19:46 +0000)
win/CS/HandBrakeWPF/Properties/Resources.Designer.cs
win/CS/HandBrakeWPF/Properties/Resources.resx
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index 920e3b625b6b1ae20ad89637211da51948080ceb..f096724a5c9d87a7c32ffe4dfc18193bdc958693 100644 (file)
@@ -1381,6 +1381,15 @@ namespace HandBrakeWPF.Properties {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to Resume Encode.
+        /// </summary>
+        public static string Main_ResumeEncode {
+            get {
+                return ResourceManager.GetString("Main_ResumeEncode", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Scan Cancelled..
         /// </summary>
index 18ccf3772fcecc1fc460da2148af1c5067d37a59..15388e182a72b8a7cb4a30de893f707e84653cf6 100644 (file)
@@ -1909,4 +1909,7 @@ This will not impact any of the software encoders.</value>
   <data name="Generic_Apply" xml:space="preserve">\r
     <value>Apply</value>\r
   </data>\r
+  <data name="Main_ResumeEncode" xml:space="preserve">\r
+    <value>Resume Encode</value>\r
+  </data>\r
 </root>
\ No newline at end of file
index ddabf080e1101aa9629266635d018779901d3991..9c054b9dd57d0e9af05f04b08f50b689286757fb 100644 (file)
@@ -1009,7 +1009,18 @@ namespace HandBrakeWPF.ViewModels
         /// <summary>\r
         /// Gets the start label.\r
         /// </summary>\r
-        public string StartLabel => this.queueProcessor.Count > 0 ? Resources.Main_StartQueue : Resources.Main_Start;\r
+        public string StartLabel\r
+        {\r
+            get\r
+            {\r
+                if (this.queueProcessor.EncodeService.IsPasued)\r
+                {\r
+                    return Resources.Main_ResumeEncode;\r
+                }\r
+\r
+                return this.queueProcessor.Count > 0 ? Resources.Main_StartQueue : Resources.Main_Start;\r
+            } \r
+        }\r
 \r
         /// <summary>\r
         /// Gets or sets a value indicating whether has source.\r