// my vars (def)
public GitRepo? repo;
public bool running;
+ public Gee.ArrayList<GitMonitorQueue> queue;
// ctor
public NewBranch()
// my vars (dec)
this.repo = null;
this.running = false;
+ this.queue = null;
// set gobject values
this.el.title = "Create a working branch ";
success = this.repo.createBranchNamed(bn);
}
}
+
+ GitMonitor.gitmonitor.restoreQueue( this.queue );
+ GitMonitor.gitmonitor.runQueue();
GitMonitor.gitmonitor.start();
this.running = false;
}
// user defined functions
- public void show ( GitRepo repo )
+ public void show ( GitRepo repo, Gee.ArrayList<GitMonitorQueue> 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();