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

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

index e9d3469..7831962 100644 (file)
      "  ",
      "  }",
      "} "
+    ],
+    "hide" : [
+     "( ) => {",
+     "",
+     " if (!this.done) {",
+     "    _this.el.show();",
+     "  ",
+     "  }",
+     "}",
+     ""
     ]
    },
    "uint border_width" : 0,
index c63fcb7..1f18b0d 100644 (file)
@@ -64,6 +64,13 @@ public class Xcls_PopoverFileDetails : Object
           
           }
         });
+        this.el.hide.connect( ( ) => {
+        
+         if (!this.done) {
+            _this.el.show();
+          
+          }
+        });
     }
 
     // user defined functions