Charlie Kindel пре 5 година
родитељ
комит
a8c67feb23
1 измењених фајлова са 4 додато и 6 уклоњено
  1. 4 6
      UICatalog/Scenarios/Progress.cs

+ 4 - 6
UICatalog/Scenarios/Progress.cs

@@ -83,12 +83,10 @@ namespace UICatalog {
 			_activityProgressBar.Fraction = 0F;
 			_activityProgressBar.Fraction = 0F;
 			_pulseProgressBar.Fraction = 0F;
 			_pulseProgressBar.Fraction = 0F;
 
 
-			_timer = new Timer ((o) => Application.MainLoop.Invoke (() => Pulse ()), null, 0, 250);
-
-			// BUGBUG: This timeout does nothing but return true, however it trigger the Application.MainLoop
-			// to run the Action. Without this timeout, the display updates are random, 
-			// or triggered by user interaction with the UI. See #155
-			//_timeoutToken = Application.MainLoop.AddTimeout (TimeSpan.FromMilliseconds (10), loop => true);
+			_timer = new Timer ((o) => {
+				// BUGBUG: #409 - Invoke does not cause Wakeup as it should
+				Application.MainLoop.Invoke (() => Pulse ());
+			}, null, 0, 250);
 		}
 		}
 
 
 		private void Stop ()
 		private void Stop ()