src/Builder4/Editor.bjs
authorAlan <alan@roojs.com>
Thu, 8 Feb 2024 09:48:52 +0000 (17:48 +0800)
committerAlan <alan@roojs.com>
Thu, 8 Feb 2024 09:48:52 +0000 (17:48 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index 4c99480..de4f6cb 100644 (file)
         " \tthis.el.set_value ( BuilderApplication.settings.editor_font_size);",
         " \tBuilderApplication.settings.editor_font_size_updated.connect(",
         " \t\t() => {",
-        " \t\t\tthis.inchange = true;",
+        " \t\t\tBuilderApplication.settings.editor_font_size_inchange = true;",
         " \t\t\tGLib.debug(\"update range\");",
         " \t\t \tthis.el.set_value (BuilderApplication.settings.editor_font_size);",
-        " \t\t \tthis.inchange = false;",
+        " \t\t \tBuilderApplication.settings.editor_font_size_inchange = false;",
         " \t\t}",
         "\t);",
         "\t",
index f16ab15..e9c403c 100644 (file)
@@ -499,10 +499,10 @@ public class Editor : Object
                                this.el.set_value ( BuilderApplication.settings.editor_font_size);
                                BuilderApplication.settings.editor_font_size_updated.connect(
                                        () => {
-                                               this.inchange = true;
+                                               BuilderApplication.settings.editor_font_size_inchange = true;
                                                GLib.debug("update range");
                                                this.el.set_value (BuilderApplication.settings.editor_font_size);
-                                               this.inchange = false;
+                                               BuilderApplication.settings.editor_font_size_inchange = false;
                                        }
                                );