hide the file navigation window when opening a new file
authorAlan <alan@roojs.com>
Wed, 17 Aug 2022 08:21:01 +0000 (16:21 +0800)
committerAlan <alan@roojs.com>
Wed, 17 Aug 2022 08:21:01 +0000 (16:21 +0800)
src/Builder4/PopoverFiles.bjs
src/Builder4/PopoverFiles.vala
src/Builder4/WindowState.vala

index 66eecdc..b3317fe 100644 (file)
              "    ",
              "    var f = JsRender.JsRender.factory(_this.selectedProject.xtype,  _this.selectedProject, \"\");",
              "     _this.win.windowstate.file_details.show( f, this.el, _this.new_window );",
+             "     ",
              "",
              "}"
             ]
index fc814e9..8309ef3 100644 (file)
@@ -543,6 +543,7 @@ public class Xcls_PopoverFiles : Object
                 
                 var f = JsRender.JsRender.factory(_this.selectedProject.xtype,  _this.selectedProject, "");
                  _this.win.windowstate.file_details.show( f, this.el, _this.new_window );
+                 
             
             });
         }
index c296599..c757476 100644 (file)
@@ -585,6 +585,8 @@ public class WindowState : Object
                this.file_details.success.connect((project,file) =>
                {
                        this.fileViewOpen(file, this.file_details.new_window,  -1);
+                       // if it's comming from the file dialog -> hide it...
+                       
                });
 
        }
@@ -623,6 +625,8 @@ public class WindowState : Object
                }
                
                if (new_window) {
+       
+                       this.popover_files.el.hide();
                        BuilderApplication.newWindow(file, line);
                        return;
                }