From: Alan Knowles Date: Mon, 18 May 2015 09:01:28 +0000 (+0800) Subject: src/Builder4/MainWindow.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=bb75c07c5ee01ad5d2169335df60aa3c3a6b62e2;p=app.Builder.js src/Builder4/MainWindow.bjs src/Builder4/MainWindow.vala --- diff --git a/src/Builder4/MainWindow.bjs b/src/Builder4/MainWindow.bjs index 1bd410ec8..0c76f23c0 100644 --- a/src/Builder4/MainWindow.bjs +++ b/src/Builder4/MainWindow.bjs @@ -649,7 +649,7 @@ }, { "listeners" : { - "button_press_event" : "() => {\n if (this.popup == null) {\n this.popup = new Xcls_ValaCompileErrors();\n this.popup.window = _this;\n }\n this.popup.show(this.notices, this.el);\n return true;\n}" + "button_press_event" : "() => {\n if (this.popup == null) {\n this.popup = new Xcls_ValaCompileErrors();\n this.popup.window = _this;\n }\n if (this.popup.active) {\n this.popup.active = false;\n this.popup.el.hide();\n return true;\n }\n this.popup.show(this.notices, this.el);\n return true;\n}" }, "bool always_show_image" : true, "id" : "statusbar_depricated", diff --git a/src/Builder4/MainWindow.vala b/src/Builder4/MainWindow.vala index 0f10d5440..3e3ae6274 100644 --- a/src/Builder4/MainWindow.vala +++ b/src/Builder4/MainWindow.vala @@ -2424,6 +2424,11 @@ public class Xcls_MainWindow : Object this.popup = new Xcls_ValaCompileErrors(); this.popup.window = _this; } + if (this.popup.active) { + this.popup.active = false; + this.popup.el.hide(); + return true; + } this.popup.show(this.notices, this.el); return true; });