ui: Show even log when app icon is clicked and there are no other windows
This commit is contained in:
parent
da0c70e8ea
commit
dd2eabacf9
|
@ -232,16 +232,19 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private int reopen_attempt_counts = 0;
|
private int reopen_attempt_counts = 0;
|
||||||
|
|
||||||
public void HandleReopen ()
|
public void HandleReopen ()
|
||||||
{
|
{
|
||||||
reopen_attempt_counts++;
|
if (Repositories.Length > 0) {
|
||||||
|
ShowEventLogWindow ();
|
||||||
if (reopen_attempt_counts > 1) {
|
|
||||||
|
} else if (reopen_attempt_counts > 1) {
|
||||||
AlertNotificationRaised ("Hello!", "SparkleShare sits right here, as a status icon.");
|
AlertNotificationRaised ("Hello!", "SparkleShare sits right here, as a status icon.");
|
||||||
reopen_attempt_counts = 0;
|
reopen_attempt_counts = 0;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
reopen_attempt_counts++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue