src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 31 Jan 2024 10:46:01 +0000 (18:46 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Jan 2024 10:46:01 +0000 (18:46 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index 99cf5d4..d81dc06 100644 (file)
                  "\t}",
                  "\tif (ws.file.path != _this.windowstate.file.path) {",
                  "\t\t_this.windowstate.fileViewOpen(ws.file, ws.file_details.new_window,  -1);",
+                 "\t\t_this.splitview.el.show_sidebar = false;",
                  "\t}",
                  "\t",
                  "\tthis.selectCurrent();",
index 86edfe9..a11d105 100644 (file)
@@ -1885,6 +1885,7 @@ public class Xcls_MainWindow : Object
                                }
                                if (ws.file.path != _this.windowstate.file.path) {
                                        _this.windowstate.fileViewOpen(ws.file, ws.file_details.new_window,  -1);
+                                       _this.splitview.el.show_sidebar = false;
                                }
                                
                                this.selectCurrent();