[statusicon] don't allow there to be more repos syncing than there are repos
This commit is contained in:
parent
ac8828e7a0
commit
75abe689cb
|
@ -298,6 +298,9 @@ namespace SparkleShare {
|
||||||
if (SyncingReposCount < 0)
|
if (SyncingReposCount < 0)
|
||||||
SyncingReposCount = 0;
|
SyncingReposCount = 0;
|
||||||
|
|
||||||
|
if (SyncingReposCount > SparkleUI.Repositories.Count)
|
||||||
|
SyncingReposCount = SparkleUI.Repositories.Count;
|
||||||
|
|
||||||
if (SyncingReposCount > 0)
|
if (SyncingReposCount > 0)
|
||||||
SetSyncingState ();
|
SetSyncingState ();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue