}
}
- statusicon.set_tooltip_text("Gitlive");
-
-
- GitMonitor.gitmonitor.start();
+
});
}
statusicon.set_tooltip_text("pull: " + repo.name);
var str = "";
repo.pull_async((out result) {
- total--;
- str += str.length > 0 ? "\n" : "";
- str += res;
- if (total < 1) {
-
+ total--;`
+ if (!Regex.match_simple ("Already up-to-date", str) ) {
+
+
+ str += str.length > 0 ? "\n" : "";
+ str += "Updated: " +repo.name + "\n" + res +"\n";
+ }
+ if (total < 1) {
+ var notification = new Notify.Notification(
+ "Updated " + repo.name,
+ str,
+ "dialog-information"
+ );
+ statusicon.set_tooltip_text("Gitlive");
+
+
+ GitMonitor.gitmonitor.start();
}
});
// do not care if it's already in sycn..
- if (Regex.match_simple ("Already up-to-date", str) ) {
- continue;
- }
- var notification = new Notify.Notification(
- "Updated " + repo.name,
- str,
- "dialog-information"
-
- );
+
notification.set_timeout(20);
notification.show();