src/Builder4/PopoverFileDetails.bjs
authorAlan <alan@roojs.com>
Wed, 6 Jul 2022 08:48:16 +0000 (16:48 +0800)
committerAlan <alan@roojs.com>
Wed, 6 Jul 2022 08:48:16 +0000 (16:48 +0800)
src/Builder4/PopoverFileDetails.vala
src/Builder4/ValaProjectSettingsPopover.bjs
src/Builder4/ValaProjectSettingsPopover.vala

src/Builder4/PopoverFileDetails.vala
src/Builder4/ValaProjectSettingsPopover.bjs
src/Builder4/ValaProjectSettingsPopover.vala

index 1f18b0d..8e8d702 100644 (file)
@@ -55,7 +55,6 @@ public class Xcls_PopoverFileDetails : Object
         this.el.position = Gtk.PositionType.RIGHT;
         var child_0 = new Xcls_Box2( _this );
         child_0.ref();
-        this.el.add(  child_0.el );
 
         //listeners
         this.el.closed.connect( () => {
@@ -457,7 +456,7 @@ public class Xcls_PopoverFileDetails : Object
         {
             _this = _owner;
             _this.ftdbmodel = this;
-            this.el = new Gtk.ListStore.newv(  { typeof(string),typeof(string) }  );
+            this.el = new Gtk.ListStore( 2, typeof(string),typeof(string) );
 
             // my vars (dec)
 
@@ -902,7 +901,7 @@ public class Xcls_PopoverFileDetails : Object
         {
             _this = _owner;
             _this.dbmodel = this;
-            this.el = new Gtk.ListStore.newv(  { typeof(string),typeof(string) }  );
+            this.el = new Gtk.ListStore( 2, typeof(string),typeof(string) );
 
             // my vars (dec)
 
@@ -1040,7 +1039,7 @@ public class Xcls_PopoverFileDetails : Object
         {
             _this = _owner;
             _this.dirmodel = this;
-            this.el = new Gtk.ListStore.newv(  { typeof(string),typeof(string) }  );
+            this.el = new Gtk.ListStore( 2, typeof(string),typeof(string) );
 
             // my vars (dec)
 
index 8a4025f..7a22ae1 100644 (file)
    "listeners" : {
     "hide" : [
      "() => {",
-     "\t_this.project.writeConfig();",
-     "",
+     "\t  if (!this.done) {",
+     "    _this.el.show();",
+     "  ",
+     "  }",
      "}"
     ]
    },
index a563a8f..3beab08 100644 (file)
@@ -65,8 +65,10 @@ public class ValaProjectSettingsPopover : Object
 
         //listeners
         this.el.hide.connect( () => {
-               _this.project.writeConfig();
-        
+                 if (!this.done) {
+            _this.el.show();
+          
+          }
         });
     }