src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 2 Feb 2024 02:15:28 +0000 (10:15 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 Feb 2024 02:15:28 +0000 (10:15 +0800)
src/Builder4/MainWindow.vala

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

index 9118b9b..6326baa 100644 (file)
            "\t",
            "\tif (_this.windowstate.file.xtype == \"PlainFile\") {",
            "\t\t_this.codeeditviewbox.el.show();",
-           "\t\t_this.windowstate,switchState (State.CODEONLY); ",
+           "\t\t_this.windowstate.switchState (WindowState.State.CODEONLY); ",
            "\t ",
            "\t\t_this.windowstate.code_editor_tab.show(_this.windowstate.file, null, null);",
            "\t\t ",
            "\t} else {",
            "\t",
-           "\t\t_this.windowstate.switchState (State.PREVIEW); ",
+           "\t\t_this.windowstate.switchState (WindowState.State.PREVIEW); ",
            "\t\t// this triggers loadItems..",
            "\t\t_this.windowstate.left_tree.model.loadFile(",
-           "\t\t\t_this..windowstate.file);",
+           "\t\t\t_this.windowstate.file);",
            "\t\t ",
            "",
            "\t}",
index fdcb7e4..142453f 100644 (file)
@@ -335,16 +335,16 @@ public class Xcls_MainWindow : Object
                                
                                if (_this.windowstate.file.xtype == "PlainFile") {
                                        _this.codeeditviewbox.el.show();
-                                       _this.windowstate,switchState (State.CODEONLY); 
+                                       _this.windowstate.switchState (WindowState.State.CODEONLY); 
                                 
                                        _this.windowstate.code_editor_tab.show(_this.windowstate.file, null, null);
                                         
                                } else {
                                
-                                       _this.windowstate.switchState (State.PREVIEW); 
+                                       _this.windowstate.switchState (WindowState.State.PREVIEW); 
                                        // this triggers loadItems..
                                        _this.windowstate.left_tree.model.loadFile(
-                                               _this..windowstate.file);
+                                               _this.windowstate.file);
                                         
                        
                                }