From b4329eb9286c68f97fbb5392eaed51fad59382d6 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 22 May 2011 18:12:40 +0100 Subject: [PATCH] repo: also announce changes after a syncup->down->up --- SparkleLib/SparkleRepoBase.cs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/SparkleLib/SparkleRepoBase.cs b/SparkleLib/SparkleRepoBase.cs index 8428808c..2e11a6a6 100644 --- a/SparkleLib/SparkleRepoBase.cs +++ b/SparkleLib/SparkleRepoBase.cs @@ -379,14 +379,20 @@ namespace SparkleLib { SparkleHelpers.DebugInfo ("SyncUp", "[" + Name + "] Error"); HasUnsyncedChanges = true; - - if (SyncStatusChanged != null) - SyncStatusChanged (SyncStatus.Error); - SyncDownBase (); - if (SyncUp ()) + if (SyncUp ()) { HasUnsyncedChanges = false; + + if (SyncStatusChanged != null) + SyncStatusChanged (SyncStatus.Idle); + + this.listener.AnnounceBase (new SparkleAnnouncement (Identifier, CurrentRevision)); + + } else { + if (SyncStatusChanged != null) + SyncStatusChanged (SyncStatus.Error); + } } } finally {