From 556661ee18a4b114d63e652935773a54362a4af1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Mar 2019 14:29:09 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 1 - NewBranch.vala | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/NewBranch.bjs b/NewBranch.bjs index 74014e71..a89df47d 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -551,7 +551,6 @@ }, "label" : "Commit Changes", "id" : "createbtn", - "| void updateState" : "() {\n\n\tvar ticket_id = _this.ticketsel.selectedTicketId();\n\t\n\tif (ticket_id == \"\") {\n\t\tthis.el.set_sensitive(false);\n\t\treturn;\n\t}\n \n\tthis.el.set_sensitive(true);\n \n}\n", "* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n", "xtype" : "Button", "* pack" : "attach_defaults,4,5,1,2", diff --git a/NewBranch.vala b/NewBranch.vala index 3a86bd35..a91ee428 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -2419,18 +2419,6 @@ public class NewBranch : Object } // user defined functions - public void updateState () { - - var ticket_id = _this.ticketsel.selectedTicketId(); - - if (ticket_id == "") { - this.el.set_sensitive(false); - return; - } - - this.el.set_sensitive(true); - - } } -- 2.39.2