resources/RooUsage.txt
[app.Builder.js] / src / Builder4 / MainWindow.vala
index f142ff0..d62b8db 100644 (file)
@@ -79,6 +79,11 @@ public class Xcls_MainWindow : Object
         // init method
 
         //this.el.show_all();
+            //try {
+                 this.el.set_icon_name("roobuilder");
+               //} catch (Exception e) {
+               //      print("no icon found");
+        //     }
 
         //listeners
         this.el.delete_event.connect( (   event) => {
@@ -1187,8 +1192,12 @@ public class Xcls_MainWindow : Object
 
             //listeners
             this.el.clicked.connect( ( ) => {
-              
-                _this.windowstate.switchState(WindowState.State.PREVIEW);
+               if (_this.windowstate.state == WindowState.State.FILEPROJECT) {
+                
+                    _this.windowstate.switchState(WindowState.State.FILES);
+                 } else { 
+                   _this.windowstate.switchState(WindowState.State.PREVIEW);
+                }
                 
             
             });
@@ -1430,11 +1439,11 @@ public class Xcls_MainWindow : Object
             //listeners
             this.el.clicked.connect( ( ) => {
                  
-                 if (_this.windowstate == WindowState.State.FILES) {
+                 if (_this.windowstate.state == WindowState.State.FILES) {
                  
                     _this.windowstate.switchState(WindowState.State.FILEPROJECT);
                  } else {
-                            _this.windowstate.switchState(WindowState.State.PROJECT);
+                    _this.windowstate.switchState(WindowState.State.PROJECT);
                 }