MessageBoxManager issue

I go from a ‘view’ window to an ‘edit’ window. On the ‘edit’ window, there is a ‘Save’ button that is wired up like this:

    networkChangeWindow.GetChildByName("saveButton").TapEvent += new OnTap(delegate
    {
        if (Glide.MessageBoxManager.Show("Settings have been saved!", "Settings Saved", DialogButtons.Ok) == DialogResult.Ok)
        {
            networkChangeWindow.Invalidate();
            Tween.SlideWindow(networkChangeWindow, networkStatusWindow, Direction.Left);
        }
    });

The messagebox shows correctly, and brings me back to the ‘view’ page. However, when I go BACK to the ‘edit’ page (using Tween.Slide) - the messagebox is still there, and this time the OK button doesn’t do anything.

How do I get the message box to “go away” once I navigate away from that window??

What version of Glide are you using?

Assembly properties shows 0.1.0.0 - I just downloaded it a couple of days ago, so I believe the latest.

This is a bug that will be fixed.

Oh ok - any workaround for now?? Thanks!

networkChangeWindow.GetChildByName("saveButton").TapEvent += new OnTap(delegate
{
	if (Glide.MessageBoxManager.Show("Settings have been saved!", "Settings Saved", DialogButtons.Ok) == DialogResult.Ok)
	{
		Thread.Sleep(100);
		networkChangeWindow.Invalidate();
		Tween.SlideWindow(networkChangeWindow, networkStatusWindow, Direction.Left);
	}
});

That did it, thanks!! :slight_smile: