src/Builder4/PopoverFiles.bjs
authorAlan <alan@roojs.com>
Fri, 2 Sep 2022 04:33:54 +0000 (12:33 +0800)
committerAlan <alan@roojs.com>
Fri, 2 Sep 2022 04:33:54 +0000 (12:33 +0800)
src/Builder4/PopoverFiles.vala

src/Builder4/PopoverFiles.bjs
src/Builder4/PopoverFiles.vala

index 1e6bfdd..236aafb 100644 (file)
               "changed" : [
                "( ) => {",
                "\tGLib.debug(\"Got '%s'\", this.el.text);",
+               "\t",
+               "\tif (this.el.text != _this.lastfilter) {",
+               "\t\t_this.loadIconView();",
+               "\t}",
                "}",
                ""
               ]
index 61e4a21..6d9e305 100644 (file)
@@ -885,6 +885,10 @@ public class Xcls_PopoverFiles : Object
             //listeners
             this.el.changed.connect( ( ) => {
                GLib.debug("Got '%s'", this.el.text);
+               
+               if (this.el.text != _this.lastfilter) {
+                       _this.loadIconView();
+               }
             });
         }