Ensure the background is eventually displayed when `IntroTriangles` suspends

This commit is contained in:
Dean Herbert 2022-01-30 21:32:39 +09:00
parent 6a21d58325
commit 82806d7aeb
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ public override void OnSuspending(IScreen next)
{
base.OnSuspending(next);
// ensure the background is shown, even if the TriangleIntroSequence failed to do so.
background.ApplyToBackground(b => b.Show());
// important as there is a clock attached to a track which will likely be disposed before returning to this screen.
intro.Expire();
}