diff --git a/SparkleShare/Mac/SparkleSetup.cs b/SparkleShare/Mac/SparkleSetup.cs index d9e84f06..ff7a33b4 100644 --- a/SparkleShare/Mac/SparkleSetup.cs +++ b/SparkleShare/Mac/SparkleSetup.cs @@ -301,13 +301,13 @@ namespace SparkleShare { MaxValue = 100.0 }; - // ProgressIndicator.StartAnimation (this); + ProgressIndicator.StartAnimation (this); - Controller.UpdateProgressBarEvent += delegate (double percentage) { - InvokeOnMainThread (delegate { + Controller.UpdateProgressBarEvent += delegate (double percentage) { + InvokeOnMainThread (delegate { ProgressIndicator.DoubleValue = percentage; }); - }; + }; ContentView.AddSubview (ProgressIndicator); @@ -317,12 +317,12 @@ namespace SparkleShare { }; CancelButton = new NSButton () { - Title = "Cancel" - }; + Title = "Cancel" + }; - CancelButton.Activated += delegate { + CancelButton.Activated += delegate { Controller.SyncingCancelled (); - }; + }; Buttons.Add (FinishButton); Buttons.Add (CancelButton); @@ -379,6 +379,8 @@ namespace SparkleShare { NSApplication.SharedApplication.RequestUserAttention (NSRequestUserAttentionType.CriticalRequest); + NSSound.FromName ("Glass").Play (); + break; } } diff --git a/SparkleShare/SparkleSetup.cs b/SparkleShare/SparkleSetup.cs index 436a1e28..f4070e4e 100644 --- a/SparkleShare/SparkleSetup.cs +++ b/SparkleShare/SparkleSetup.cs @@ -396,7 +396,6 @@ namespace SparkleShare { case PageType.Finished: { UrgencyHint = true; - NSSound.FromName ("Glass").Play (); if (!HasToplevelFocus) { string title = String.Format (_("‘{0}’ has been successfully added"), Controller.SyncingFolder);