X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.vala;h=74d09e052442d47926b424ffdd209667c387e4aa;hp=640ae38eba348b6af36151f0d67fdeaf14dc26e2;hb=0c10a808ad544684bdda587cb45daeed6cc039b9;hpb=fd9fb18c5cf70445c33adab625622222801c12ac diff --git a/NewBranch.vala b/NewBranch.vala index 640ae38e..74d09e05 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -29,7 +29,7 @@ public class NewBranch : Object // my vars (dec) this.repo = null; - this.running = true; + this.running = false; // set gobject values this.el.title = "Create a working branch "; @@ -50,6 +50,7 @@ public class NewBranch : Object //listeners this.el.delete_event.connect( (self, event) => { this.el.hide(); + this.running = false; return true; //test }); @@ -59,8 +60,10 @@ public class NewBranch : Object if (response_id == 0) { _this.el.hide(); this.running = false; + GitMonitor.gitmonitor.start(); return; } + // have they selected a ticket.. // make that the current active ticket? // we really need to store locally what ticket is being worked on.. @@ -78,7 +81,7 @@ public class NewBranch : Object this.repo.createBranchNamed(bn); } } - + GitMonitor.gitmonitor.start(); this.running = false; @@ -101,6 +104,9 @@ public class NewBranch : Object if (this.running) { return; } + this.running = true; + GitMonitor.gitmonitor.stop(); + this.repo = repo; this.el.move((Gdk.Screen.width() / 2)- 250 ,0);