diff --git a/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms.Shared/Controls/Popups/ToastManager.cs b/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms.Shared/Controls/Popups/ToastManager.cs index 56e80bee1..7819b2df5 100644 --- a/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms.Shared/Controls/Popups/ToastManager.cs +++ b/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms.Shared/Controls/Popups/ToastManager.cs @@ -110,7 +110,18 @@ private static async void DoLoop() foreach (var message in toastMessages.GetConsumingEnumerable(CancellationToken.None)) { Toast toast = null; - + + // November 23, 2023 + // Note: Calling await + // in this method results + // in the SynchronizationContext + // resuming the method on the main + // thread. Not sure if this is desirable + // or not. For now I'll leave it as-is since + // all seems to work, but if we want to keep this + // on a separate thread, then we need to do this: + // 'Task. Delay().configureawait(false)` + // This must be done on the primary thread in case it loads // the PNG for the first time: await Instructions.InstructionManager.DoOnMainThreadAsync(() =>