NewBranch.bjs
[gitlive] / NewBranch.vala
index 230fc6f..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)  => {
          
@@ -204,7 +206,9 @@ public class NewBranch : Object
                var name = RooTicket.singleton().usernameLocal();
                
                if (ticket_id == "") {
-                       _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;
                }