src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 15:49:13 +0000 (23:49 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 15:49:13 +0000 (23:49 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index 612f458..a568db1 100644 (file)
            ],
            "| void show" : [
             "(Gee.ArrayList<Lsp.DocumentSymbol> syms) {",
-            "\t_this.navigation_holder.el.show();",
             "\t",
+            "\tif (!_this.navigation_holder.el.visible) {",
+            "\t\t_this.navigation_holder.el.show();",
+            "\t\t_this.paned.el.position  = ",
+            "\t\t\t_this.paned.el.get_width() - 120;",
+            "\t}",
             "\t//_this.navliststore.el.remove_all();",
             "\t",
             "\t",
index caf2771..a8d8f29 100644 (file)
@@ -2020,8 +2020,12 @@ public class Editor : Object
                        return row;
                 }
                public void show (Gee.ArrayList<Lsp.DocumentSymbol> syms) {
-                       _this.navigation_holder.el.show();
                        
+                       if (!_this.navigation_holder.el.visible) {
+                               _this.navigation_holder.el.show();
+                               _this.paned.el.position  = 
+                                       _this.paned.el.get_width() - 120;
+                       }
                        //_this.navliststore.el.remove_all();