ui: Show even log when app icon is clicked and there are no other windows

This commit is contained in:
Hylke Bons 2014-04-19 16:00:04 +01:00
parent da0c70e8ea
commit dd2eabacf9

View file

@ -232,16 +232,19 @@ namespace SparkleShare {
}
private int reopen_attempt_counts = 0;
public void HandleReopen ()
{
reopen_attempt_counts++;
if (reopen_attempt_counts > 1) {
if (Repositories.Length > 0) {
ShowEventLogWindow ();
} else if (reopen_attempt_counts > 1) {
AlertNotificationRaised ("Hello!", "SparkleShare sits right here, as a status icon.");
reopen_attempt_counts = 0;
} else {
reopen_attempt_counts++;
}
}