sync wip_alan_T7370_project_properties origin/wip_alan_T7370_project_properties
authorAlan <alan@roojs.com>
Wed, 31 Aug 2022 09:18:20 +0000 (17:18 +0800)
committerAlan <alan@roojs.com>
Wed, 31 Aug 2022 09:18:20 +0000 (17:18 +0800)
src/Builder4/PopoverFileDetails.bjs
src/Builder4/PopoverFileDetails.vala

index 002a263..a69864b 100644 (file)
           "(bool is_bjs) {",
           "",
           "",
-          "\tif (_this.project.xtype != \"Roo\") {",
-          "\t \tis_bjs = false;",
-          " \t}",
+          "\t ",
           "\t_this.grid.showAllRows();",
           "",
           "\tswitch(_this.project.xtype) {",
           "\t\t\t_this.grid.hideRow(5);\t",
           "\t\t\t_this.grid.hideRow(6);\t",
           "\t\t    // hide 2,3,4,5,6,",
+          "\t\t    if (_this.file.name.length > 0) {",
+          "\t\t    \t_this.grid.hideRow(8); // directory - cant change it here..",
+          "\t    \t}",
+          "\t\t    ",
           "\t\t\tbreak;",
           "\t}",
           " ",
     "",
     "     int w,h;",
     "    this.mainwindow.el.get_size(out w, out h);",
-    "    this.el.set_size_request( 550, 300);",
+    "    this.el.set_size_request( 550, 100); // should expand height, but give  a min width.",
     "",
     "   ",
     "    ",
index 2ea5208..d5b0d13 100644 (file)
@@ -130,7 +130,7 @@ public class Xcls_PopoverFileDetails : Object
     
          int w,h;
         this.mainwindow.el.get_size(out w, out h);
-        this.el.set_size_request( 550, 300);
+        this.el.set_size_request( 550, 100); // should expand height, but give  a min width.
     
        
         
@@ -420,9 +420,7 @@ public class Xcls_PopoverFileDetails : Object
         public void showhide (bool is_bjs) {
         
         
-               if (_this.project.xtype != "Roo") {
-                       is_bjs = false;
-               }
+                
                _this.grid.showAllRows();
         
                switch(_this.project.xtype) {
@@ -442,6 +440,10 @@ public class Xcls_PopoverFileDetails : Object
                                _this.grid.hideRow(5);  
                                _this.grid.hideRow(6);  
                            // hide 2,3,4,5,6,
+                           if (_this.file.name.length > 0) {
+                               _this.grid.hideRow(8); // directory - cant change it here..
+                       }
+                           
                                break;
                }