[gnome-builder] plugins/editorui: save/restore tweaks



commit 0248329ed636e494f202692c9696402c038580ab
Author: Christian Hergert <chergert redhat com>
Date:   Thu Aug 18 17:58:03 2022 -0700

    plugins/editorui: save/restore tweaks

 src/plugins/editorui/tweaks.ui | 30 +++++++++++++++++++++++++++---
 1 file changed, 27 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/editorui/tweaks.ui b/src/plugins/editorui/tweaks.ui
index 70d37d6f2..97689f90a 100644
--- a/src/plugins/editorui/tweaks.ui
+++ b/src/plugins/editorui/tweaks.ui
@@ -200,13 +200,26 @@
                     <property name="title" translatable="yes">Behavior</property>
                     <child>
                       <object class="IdeTweaksGroup">
+                        <property name="title" translatable="yes">Save &amp; Restore</property>
                         <child>
                           <object class="IdeTweaksSwitch">
-                            <property name="title" translatable="yes">Restore Cursor Position</property>
-                            <property name="subtitle" translatable="yes">Jump to the last position when 
re-opening a file</property>
-                            <property 
name="action-name">settings.org.gnome.builder.editor.restore-insert-mark</property>
+                            <property name="title" translatable="yes">Auto-Save</property>
+                            <property name="subtitle" translatable="yes">Regularly save the document as you 
type</property>
+                            <property 
name="action-name">settings.org.gnome.builder.editor.auto-save</property>
                           </object>
                         </child>
+                        <child>
+                          <object class="IdeTweaksSpin">
+                            <property name="title" translatable="yes">Auto-Save Delay</property>
+                            <property name="subtitle" translatable="yes">The delay in seconds to wait before 
auto-saving the document</property>
+                            <property name="settings">settings_org_gnome_builder_editor</property>
+                            <property name="key">auto-save-timeout</property>
+                          </object>
+                        </child>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="IdeTweaksGroup">
                         <child>
                           <object class="IdeTweaksSwitch">
                             <property name="title" translatable="yes">Format on Save</property>
@@ -216,6 +229,17 @@
                         </child>
                       </object>
                     </child>
+                    <child>
+                      <object class="IdeTweaksGroup">
+                        <child>
+                          <object class="IdeTweaksSwitch">
+                            <property name="title" translatable="yes">Restore Cursor Position</property>
+                            <property name="subtitle" translatable="yes">Jump to the last position when 
re-opening a file</property>
+                            <property 
name="action-name">settings.org.gnome.builder.editor.restore-insert-mark</property>
+                          </object>
+                        </child>
+                      </object>
+                    </child>
                     <child>
                       <object class="IdeTweaksGroup" id="editor_behavior_keyboard_group">
                         <property name="title" translatable="yes">Keyboard</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]