From dd2eabacf99bcf80587c98ad22860f2ef2f4cdd2 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 19 Apr 2014 16:00:04 +0100 Subject: [PATCH] ui: Show even log when app icon is clicked and there are no other windows --- SparkleShare/SparkleControllerBase.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/SparkleShare/SparkleControllerBase.cs b/SparkleShare/SparkleControllerBase.cs index 75dc4cc0..f7826903 100644 --- a/SparkleShare/SparkleControllerBase.cs +++ b/SparkleShare/SparkleControllerBase.cs @@ -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++; } }