src/Builder4/WindowState.vala
authorAlan <alan@roojs.com>
Tue, 19 Jul 2022 08:32:51 +0000 (16:32 +0800)
committerAlan <alan@roojs.com>
Tue, 19 Jul 2022 08:32:51 +0000 (16:32 +0800)
src/Builder4/WindowState.vala

index 6650a47..1e2b12c 100644 (file)
@@ -917,9 +917,12 @@ public class WindowState : Object
        public void showCompileResult(Json.Object obj)
                {
                        // vala has finished compiling...
-                       print("vala compiled");
+                       GLib.debug("vala compiled");
                        // stop the spinner...
+                       if (this.project.xx != BuilderApplication.valasource.file.project.xx) {
+                               GLib.debug("skip update - not our project");
+                               return;
+                       }
                        
                        var generator = new Json.Generator ();
                        var n  = new Json.Node(Json.NodeType.OBJECT);