src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Sat, 23 Mar 2024 07:39:24 +0000 (15:39 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 23 Mar 2024 07:39:24 +0000 (15:39 +0800)
src/Builder4/Editor.vala

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

index 5fc31de..11e59e2 100644 (file)
                  "    ",
                  "    expand.set_hide_expander( sym.children.get_n_items()  < 1);",
                  " \texpand.set_list_row(lr);",
-                 " \tthis.in_bind = true;",
+                 " \t//this.in_bind = true;",
                  " \t// default is to expand",
                  " \tswitch (sym.kind) {",
                  " \t\tcase Lsp.SymbolKind.Enum: ",
-                 " \t\t\texpand.list_row.expanded = false;",
+                 " \t\t//\texpand.list_row.expanded = false;",
                  " \t\t\tbreak;",
                  "\t\tdefault:",
+                 "\t\t\texpand.list_row.expanded = true;",
                  "\t\t\tbreak;",
                  "\t}",
-                 " \tthis.in_bind = false;",
+                 " \t//this.in_bind = false;",
                  " \t",
                  " \tsym.bind_property(\"symbol_icon\",",
                  "                    img, \"icon_name\",",
index 0f854a5..3e9e0a3 100644 (file)
@@ -2112,16 +2112,17 @@ public class Editor : Object
                            
                            expand.set_hide_expander( sym.children.get_n_items()  < 1);
                                expand.set_list_row(lr);
-                               this.in_bind = true;
+                               //this.in_bind = true;
                                // default is to expand
                                switch (sym.kind) {
                                        case Lsp.SymbolKind.Enum: 
-                                               expand.list_row.expanded = false;
+                                       //      expand.list_row.expanded = false;
                                                break;
                                        default:
+                                               expand.list_row.expanded = true;
                                                break;
                                }
-                               this.in_bind = false;
+                               //this.in_bind = false;
                                
                                sym.bind_property("symbol_icon",
                                            img, "icon_name",