Skip to content

Commit

Permalink
ui: Show even log when app icon is clicked and there are no other win…
Browse files Browse the repository at this point in the history
…dows
  • Loading branch information
hbons committed Apr 19, 2014
1 parent b46a158 commit fe37e30
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions SparkleShare/SparkleControllerBase.cs
Expand Up @@ -232,16 +232,19 @@ public virtual void Initialize ()
}



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++;
}
}

Expand Down

0 comments on commit fe37e30

Please sign in to comment.