code tidy up
authorAlan <alan@roojs.com>
Wed, 20 Jul 2022 03:36:36 +0000 (11:36 +0800)
committerAlan <alan@roojs.com>
Wed, 20 Jul 2022 03:36:36 +0000 (11:36 +0800)
src/Builder4/WindowState.vala

index 1a76bde..ee46741 100644 (file)
@@ -797,17 +797,9 @@ public class WindowState : Object
                                
         }
                         
-                        
-                
-                               
-                
                this.state = new_state;
-               
-               
-                               
                this.buttonsShowHide();
                
-               
                switch (this.state) {
                        
                        case State.PREVIEW:  // this is the default state when working...
@@ -820,21 +812,21 @@ public class WindowState : Object
                        case State.CODE:
                                this.win.leftpane.el.show();
                                this.win.editpane.el.show();
-
-                           this.win.rooviewbox.el.hide();
+                               this.win.rooviewbox.el.hide();
                                this.win.codeeditviewbox.el.show();
                                this.code_editor_tab.el.show_all();
                                break;
                   
                   
                        case State.CODEONLY:
-                               
                                this.win.leftpane.el.hide();
                                this.win.codeeditviewbox.el.show();
                                this.win.rooviewbox.el.hide();
                                this.code_editor_tab.el.show_all();
                            break;
-                       
+                           
+                       case State.NONE:
+                               break;
 
                }