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

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

index a726862..f7ed6e9 100644 (file)
@@ -71,7 +71,7 @@
         "change_value" : [
          "(st, val ) => {",
          "\t ",
-         "\t  BuilderApplication.settings.editor_font_size = val;",
+         "\t  BuilderApplication.settings.editor_font_size = (double)val;",
          " \treturn false;",
          "}"
         ]
index 4787fad..1ca83d3 100644 (file)
@@ -507,7 +507,7 @@ public class Editor : Object
                        //listeners
                        this.el.change_value.connect( (st, val ) => {
                                 
-                                 BuilderApplication.settings.editor_font_size = val;
+                                 BuilderApplication.settings.editor_font_size = (double)val;
                                return false;
                        });
                }