NewBranch.bjs
[gitlive] / NewBranch.vala
index 7fd6f64..ced3872 100644 (file)
@@ -2419,6 +2419,18 @@ public class NewBranch : Object
         }
 
         // user defined functions
+        public void updateState () {
+        
+               var msg = _this.commit_message.el.getText();
+               
+               if (msg == "") {
+                       this.el.set_sensitive(false);
+                       return;
+               }
+         
+               this.el.set_sensitive(true);
+         
+        }
     }