From 76a26b84b3ff1a90636960d1509774c53d920220 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 9 Aug 2010 09:53:38 +0100 Subject: [PATCH] [statusicon] don't allow there to be more repos syncing than there are repos --- SparkleShare/SparkleStatusIcon.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SparkleShare/SparkleStatusIcon.cs b/SparkleShare/SparkleStatusIcon.cs index 32ef40a1..f4b078a2 100644 --- a/SparkleShare/SparkleStatusIcon.cs +++ b/SparkleShare/SparkleStatusIcon.cs @@ -298,6 +298,9 @@ namespace SparkleShare { if (SyncingReposCount < 0) SyncingReposCount = 0; + if (SyncingReposCount > SparkleUI.Repositories.Count) + SyncingReposCount = SparkleUI.Repositories.Count; + if (SyncingReposCount > 0) SetSyncingState (); else