projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b5188ee
)
StatusIcon.vala
author
Alan Knowles
<alan@roojs.com>
Sat, 23 Sep 2017 05:13:41 +0000
(13:13 +0800)
committer
Alan Knowles
<alan@roojs.com>
Sat, 23 Sep 2017 05:13:41 +0000
(13:13 +0800)
StatusIcon.vala
patch
|
blob
|
history
diff --git
a/StatusIcon.vala
b/StatusIcon.vala
index
2446dd2
..
d88ce96
100644
(file)
--- a/
StatusIcon.vala
+++ b/
StatusIcon.vala
@@
-288,10
+288,7
@@
public class StatusIconA : StatusIcon {
}
}
}
}
- statusicon.set_tooltip_text("Gitlive");
-
-
- GitMonitor.gitmonitor.start();
+
});
}
});
}
@@
-316,23
+313,27
@@
public class StatusIconA : StatusIcon {
statusicon.set_tooltip_text("pull: " + repo.name);
var str = "";
repo.pull_async((out result) {
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..
}
});
// 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();
notification.set_timeout(20);
notification.show();