src/Settings.vala
authorAlan <alan@roojs.com>
Thu, 8 Feb 2024 08:31:05 +0000 (16:31 +0800)
committerAlan <alan@roojs.com>
Thu, 8 Feb 2024 08:31:05 +0000 (16:31 +0800)
src/Settings.vala

index 6d0ac74..a725d93 100644 (file)
@@ -24,9 +24,10 @@ public class Settings : Object  {
                }
                set {
                        this._editor_font_size = value;
+                       this.css.load_from_string(" .code-editor{ font-size: %spx; }".printf(value);
+                       this.save();
                }
-               this.css.load_from_string(" .code-editor{ font-size: %spx; }".printf(value);
-               this.save();
+               
        }