src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Fri, 25 Sep 2015 08:48:08 +0000 (16:48 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 25 Sep 2015 08:48:08 +0000 (16:48 +0800)
src/Builder4/WindowState.vala

index c6e0233..9580a5d 100644 (file)
@@ -764,8 +764,7 @@ public class WindowState : Object
 
                        case State.PROJECT:
                                this.win.rooview.el.set_pivot_point(1.0f,1.0f); // bottom right..
-                       
-                       case State.FILEPROJECT:
+                               
                                if (this.win.project.xtype == "Roo") {
                                        this.projectsettings.el.show_all();
                                        this.projectsettings.show(this.win.project);
@@ -778,6 +777,20 @@ public class WindowState : Object
                                 
                                break;
                                
+                       case State.FILEPROJECT:
+                               var pr = this.left_projects.getSelectedProject();
+                               if (pr.xtype == "Roo") {
+                                       this.projectsettings.el.show_all();
+                                       this.projectsettings.show(this.win.project);
+                               } else {
+                                       this.vala_projectsettings.el.show_all();
+                                       this.vala_projectsettings.show((Project.Gtk)this.win.project);
+                               }
+                               this.win.projecteditview.el.set_scale(1.0f,1.0f);
+                                
+                               break;
+                               
                   case State.FILES:  // can only get here from PREVIEW (or code-only) state.. in theory..