NewBranch.bjs
[gitlive] / NewBranch.vala
index a2ae2cd..13e34ec 100644 (file)
@@ -52,6 +52,8 @@ public class NewBranch : Object
         this.el.response.connect( (self, response_id) =>  { 
           
                 GLib.debug("got %d", (int) response_id);
+                _this.el.hide();
+                
         });
         this.el.show.connect( (self)  => {
          
@@ -205,8 +207,8 @@ public class NewBranch : Object
                
                if (ticket_id == "") {
                
-                       var dt = DateTime.now_local();
-                       _this.name.el.set_text("wip_%s_%s".printf(name,date));
+                       var dt = new  DateTime.now_local();
+                       _this.name.el.set_text("wip_%s_%s".printf(name,dt.format("%Y_%b_%d")));
                        return;
                }