]> granicus.if.org Git - handbrake/commitdiff
WinGui: The preferences UI for "Pause on low disk space" was bad with the checkbox...
authorsr55 <sr55.hb@outlook.com>
Fri, 5 Jul 2019 19:24:10 +0000 (20:24 +0100)
committersr55 <sr55.hb@outlook.com>
Fri, 5 Jul 2019 22:11:22 +0000 (23:11 +0100)
win/CS/HandBrakeWPF/Properties/Resources.Designer.cs
win/CS/HandBrakeWPF/Properties/Resources.resx
win/CS/HandBrakeWPF/Views/OptionsView.xaml
win/CS/HandBrakeWPF/defaultsettings.xml

index b29ec52293e4c9fbfa0ee37ba6e4d5805d06c660..892c484bea171e26cd86c640f7567d37f5eefd1e 100644 (file)
@@ -2761,7 +2761,7 @@ namespace HandBrakeWPF.Properties {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Low diskspace warning level (GB):.
+        ///   Looks up a localized string similar to Pause queue if disk space is lower than:.
         /// </summary>
         public static string Options_LowDiskspaceSize {
             get {
@@ -2769,6 +2769,15 @@ namespace HandBrakeWPF.Properties {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to GB.
+        /// </summary>
+        public static string Options_LowDiskspaceSizeGB {
+            get {
+                return ResourceManager.GetString("Options_LowDiskspaceSizeGB", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Minimize to system tray (Requires Restart).
         /// </summary>
@@ -2841,15 +2850,6 @@ namespace HandBrakeWPF.Properties {
             }
         }
         
-        /// <summary>
-        ///   Looks up a localized string similar to Pause queue if disk space is low before starting a job..
-        /// </summary>
-        public static string Options_PauseQueueOnLowDiskSpace {
-            get {
-                return ResourceManager.GetString("Options_PauseQueueOnLowDiskSpace", resourceCulture);
-            }
-        }
-        
         /// <summary>
         ///   Looks up a localized string similar to Prevent the system from sleeping while encoding.
         /// </summary>
index 172b478bfa8753a51203a4c1f8ee245812b5c938..c850971d0121f347d1b81b345b1966c6bd3f5686 100644 (file)
@@ -1241,7 +1241,7 @@ Would you like to overwrite it?</value>
     <value>Log Path:</value>\r
   </data>\r
   <data name="Options_LowDiskspaceSize" xml:space="preserve">\r
-    <value>Low diskspace warning level (GB):</value>\r
+    <value>Pause queue if disk space is lower than:</value>\r
   </data>\r
   <data name="Options_MinimiseTray" xml:space="preserve">\r
     <value>Minimize to system tray (Requires Restart)</value>\r
@@ -1264,9 +1264,6 @@ Would you like to overwrite it?</value>
   <data name="Options_PathToVLC" xml:space="preserve">\r
     <value>Path to VLC Player</value>\r
   </data>\r
-  <data name="Options_PauseQueueOnLowDiskSpace" xml:space="preserve">\r
-    <value>Pause queue if disk space is low before starting a job.</value>\r
-  </data>\r
   <data name="Options_PreventSleep" xml:space="preserve">\r
     <value>Prevent the system from sleeping while encoding</value>\r
   </data>\r
@@ -2020,4 +2017,7 @@ Where supported, any user presets will have been imported.</value>
   <data name="QueueView_NotAvailable" xml:space="preserve">\r
     <value>Not Available</value>\r
   </data>\r
+  <data name="Options_LowDiskspaceSizeGB" xml:space="preserve">\r
+    <value>GB</value>\r
+  </data>\r
 </root>
\ No newline at end of file
index fc042d9f31dd63f943bf63fae3b2a634303a70ec..ce1db7a3bc635092dd25a5a78be7b00781b70a0a 100644 (file)
                 <StackPanel  Name="Advanced" Orientation="Vertical" Margin="10,5,0,0"\r
                             Visibility="{Binding SelectedTab, Converter={StaticResource tabConverter}, ConverterParameter={x:Static local:OptionsTab.Advanced}}">\r
 \r
-\r
                     <TextBlock Text="{x:Static Properties:Resources.Options_Advanced}" FontSize="20" FontFamily="Segoe UI Light"  />\r
 \r
                     <StackPanel Orientation="Vertical" Margin="0,10,0,10">\r
 \r
                         <StackPanel Orientation="Vertical" Margin="20,0,0,0">\r
                             <CheckBox Content="{x:Static Properties:Resources.Options_PreventSleep}" IsChecked="{Binding PreventSleep}" />\r
-                            <CheckBox Content="{x:Static Properties:Resources.Options_PauseQueueOnLowDiskSpace}" \r
-                                      IsChecked="{Binding PauseOnLowDiskspace}" />\r
                             <CheckBox Content="{x:Static Properties:Resources.Options_DvdRead}" IsChecked="{Binding DisableLibdvdNav}" />\r
                             <StackPanel Orientation="Horizontal" Margin="0,5,0,0">\r
-                                <TextBlock Text="{x:Static Properties:Resources.Options_LowDiskspaceSize}" VerticalAlignment="Center"  Width="250" />\r
-                                <TextBox x:Name="PauseOnLowDiskspaceLEvel" Text="{Binding PauseOnLowDiskspaceLevel, Converter={StaticResource fileSizeConverter}, UpdateSourceTrigger=PropertyChanged}"  Width="120"/>\r
+                                <CheckBox Content="{x:Static Properties:Resources.Options_LowDiskspaceSize}" IsChecked="{Binding PauseOnLowDiskspace}" Width="255" />\r
+                                <TextBox x:Name="PauseOnLowDiskspaceLevel" Text="{Binding PauseOnLowDiskspaceLevel, Converter={StaticResource fileSizeConverter}, UpdateSourceTrigger=PropertyChanged}"  Width="120"/>\r
+                                <TextBlock Text="{x:Static Properties:Resources.Options_LowDiskspaceSizeGB}" VerticalAlignment="Center" Margin="5,0,0,0" />\r
                             </StackPanel>\r
                             <StackPanel Orientation="Horizontal" Margin="0,10,0,0">\r
                                 <TextBlock Text="{x:Static Properties:Resources.Options_PreviewScanCount}" VerticalAlignment="Center" Width="250" />\r
index 7f95105d9ca1b13813845cfb98205bd21164b086..91ecbb49408fef332212b0b26ebbc514b06bab22 100644 (file)
       <string>PauseOnLowDiskspace</string>\r
     </key>\r
     <value>\r
-      <anyType xmlns:q1="http://www.w3.org/2001/XMLSchema" d4p1:type="q1:boolean" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">false</anyType>\r
+      <anyType xmlns:q1="http://www.w3.org/2001/XMLSchema" d4p1:type="q1:boolean" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">true</anyType>\r
     </value>\r
   </item>\r
   <item>\r