From 94c4be26fb0259bc5bd74e5d8086a7aa1e6e6487 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 19 Nov 2015 13:52:58 +0800 Subject: [PATCH] src/Builder4/PopoverFileDetails.bjs src/Builder4/PopoverFileDetails.vala --- src/Builder4/PopoverFileDetails.bjs | 2 +- src/Builder4/PopoverFileDetails.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Builder4/PopoverFileDetails.bjs b/src/Builder4/PopoverFileDetails.bjs index 49ae0e00e..714d0aef6 100644 --- a/src/Builder4/PopoverFileDetails.bjs +++ b/src/Builder4/PopoverFileDetails.bjs @@ -68,7 +68,7 @@ "* init" : "this.el.add_attribute(_this.ftdbcellrenderer.el , \"markup\", 1 );", "* pack" : "attach,1,0,1,1", "xtype" : "ComboBox", - "| void showhide" : "(bool is_bjs) {\n\tfor (var i = 2; i < 9;i++) {\n\t\tvar el = _this.grid.el.get_child_at(0,i);\n\t\t\n\t\tvar showhide= is_bjs;\n\t\tif (i> 7) {\n\t\t\tshowhide = !showhide;\n\t\t}\n\t\t\n\t\tif (showhide) {\n\t\t el.show();\n\t\t} else {\n\t\t\tel.hide();\n\t\t}\n\t\t el = _this.grid.el.get_child_at(1,i);\n\t\tif (showhide) {\n\t\t el.show();\n\t\t} else {\n\t\t\tel.hide();\n\t\t} \n }\n // load up the directories\n //??? why can we not create bjs files in other directories??\n\tif (!is_bjs && _this.file.path.length == null) {\n\t\t_this.dirmodel.loadData();\n\t\t\n\t\t\n\t}\n \n \n}\n", + "| void showhide" : "(bool is_bjs) {\n\tfor (var i = 2; i < 9;i++) {\n\t\tvar el = _this.grid.el.get_child_at(0,i);\n\t\t\n\t\tvar showhide= is_bjs;\n\t\tif (i> 7) {\n\t\t\tshowhide = !showhide;\n\t\t}\n\t\t\n\t\tif (showhide) {\n\t\t el.show();\n\t\t} else {\n\t\t\tel.hide();\n\t\t}\n\t\t el = _this.grid.el.get_child_at(1,i);\n\t\tif (showhide) {\n\t\t el.show();\n\t\t} else {\n\t\t\tel.hide();\n\t\t} \n }\n // load up the directories\n //??? why can we not create bjs files in other directories??\n\tif (!is_bjs && _this.file.path.length < 1) {\n\t\t_this.dirmodel.loadData();\n\t\t\n\t\t\n\t}\n \n \n}\n", "$ xns" : "Gtk", "items" : [ { diff --git a/src/Builder4/PopoverFileDetails.vala b/src/Builder4/PopoverFileDetails.vala index 978da16e0..6f21c6dd8 100644 --- a/src/Builder4/PopoverFileDetails.vala +++ b/src/Builder4/PopoverFileDetails.vala @@ -398,7 +398,7 @@ public class Xcls_PopoverFileDetails : Object } // load up the directories //??? why can we not create bjs files in other directories?? - if (!is_bjs && _this.file.path.length == null) { + if (!is_bjs && _this.file.path.length < 1) { _this.dirmodel.loadData(); -- 2.39.2