From 2501c49cbcd0cc3205b84bc1e33b08faf0e5b8ef Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 5 Nov 2018 14:41:21 +0800 Subject: [PATCH] sync --- GitMonitor.vala | 11 +++++++++++ GitMonitorQueue.vala | 4 +--- RooTicket.vala | 4 ++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/GitMonitor.vala b/GitMonitor.vala index d6fd7361..17dedfc4 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -224,6 +224,17 @@ public class GitMonitor : Monitor if (this.paused || this.queue.size < 1 ) { return; } + + foreach(var q in this.queue) { + if (!q.shouldIgnore() && !q.repo.is_wip_branch()) { + NewBranch.singleton().show(q.repo); + return; + } + + } + + + GLib.debug("GitMonitor.runQueue\n"); this.queueRunning = true; diff --git a/GitMonitorQueue.vala b/GitMonitorQueue.vala index 15683df5..00ab4655 100644 --- a/GitMonitorQueue.vala +++ b/GitMonitorQueue.vala @@ -44,9 +44,7 @@ public class GitMonitorQueue : MonitorNamePathDir { this.repo = GitRepo.get(this.gitpath); // trigger the suggestion to start a new branch - if (!this.shouldIgnore() && !this.repo.is_wip_branch()) { - NewBranch.singleton().show(this.repo); - } + } diff --git a/RooTicket.vala b/RooTicket.vala index 0858d1f1..7ea316bc 100644 --- a/RooTicket.vala +++ b/RooTicket.vala @@ -77,6 +77,7 @@ public class RooTicket : Object } + public RooTicket? loadTicket(string id) { @@ -127,8 +128,7 @@ public class RooTicket : Object var table = new GLib.HashTable(str_hash, str_equal); - table.insert("query[viewtype]","active"); - table.insert("developer_id","494"); + table.insert("query[viewtype]","me"); table.insert("limit","999"); table.insert("sort","summary"); table.insert("dir","ASC"); -- 2.39.2