Fix #439; Dropdowns stay open when the host force-starts the game.

This commit is contained in:
Paul Chote
2011-01-02 12:28:26 +13:00
parent 38df0a28cd
commit 9ffdce7957

View File

@@ -129,7 +129,10 @@ namespace OpenRA.Widgets
Widget.RootWidget.Children.Remove(fullscreenMask);
Widget.RootWidget.Children.Remove(panel);
};
HideDropDown += () => Game.BeforeGameStart -= HideDropDown;
Game.BeforeGameStart += HideDropDown;
fullscreenMask.OnMouseDown = mi =>
{
if (onDismiss()) HideDropDown();