X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=NewBranch.vala;h=5173aa3b062ea12b37ead73873692032ad44854e;hb=90a8811292c4a2d78b55edf043d0c2cd844c0608;hp=b3bc91d9609ca419447f0c9e0cc5be47441a15a3;hpb=5c0a38cb0c01bc54849ca5f9990bfcc43c8dafc5;p=gitlive diff --git a/NewBranch.vala b/NewBranch.vala index b3bc91d9..5173aa3b 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -20,6 +20,7 @@ public class NewBranch : Object // my vars (def) public GitRepo? repo; public bool running; + public Gee.ArrayList queue; // ctor public NewBranch() @@ -30,6 +31,7 @@ public class NewBranch : Object // my vars (dec) this.repo = null; this.running = false; + this.queue = null; // set gobject values this.el.title = "Create a working branch "; @@ -82,6 +84,9 @@ public class NewBranch : Object success = this.repo.createBranchNamed(bn); } } + + GitMonitor.gitmonitor.restoreQueue( this.queue ); + GitMonitor.gitmonitor.runQueue(); GitMonitor.gitmonitor.start(); this.running = false; @@ -99,12 +104,14 @@ public class NewBranch : Object } // user defined functions - public void show ( GitRepo repo ) + public void show ( GitRepo repo, Gee.ArrayList queue ) { // this.el.set_gravity(Gdk.Gravity.NORTH); - if (this.running) { - return; + if (this.running) { // should not happen!! + GLib.error("new branch show called, when already being displayed?"); } + this.queue = queue; + this.running = true; GitMonitor.gitmonitor.stop();