Fix #8048 - context provider start work - fix meson build flag - project settings...
[roobuilder] / src / Project / Project.vala
index c9bd360..6f03ac3 100644 (file)
@@ -85,7 +85,7 @@ namespace Project {
                public  Gee.HashMap<string,Palete.GirObject> gir_cache = null; // used by Gir ??? is this used by Roo?
                //public Palete.ValaCompileRequest last_request = null; // depricated?
                public Gee.HashMap<string,GLib.ListStore>? errorsByType = null;
+               public bool loading = false; // flag this to block saving (normally when loading ui that might trigger save..
                
                
                protected Gee.HashMap<string,Palete.LanguageClient> language_servers;
@@ -416,7 +416,11 @@ namespace Project {
 
                public void save()
                {
-                         
+                       
+                       if (this.loading) {
+                               return;
+                       }
+                       
                        var  s =  this.toJSON();
                        GLib.debug("Save Project %s\n%s", this.name, s);
                        try {