Fix #439; Dropdowns stay open when the host force-starts the game.
This commit is contained in:
@@ -130,6 +130,9 @@ namespace OpenRA.Widgets
|
|||||||
Widget.RootWidget.Children.Remove(panel);
|
Widget.RootWidget.Children.Remove(panel);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
HideDropDown += () => Game.BeforeGameStart -= HideDropDown;
|
||||||
|
Game.BeforeGameStart += HideDropDown;
|
||||||
|
|
||||||
fullscreenMask.OnMouseDown = mi =>
|
fullscreenMask.OnMouseDown = mi =>
|
||||||
{
|
{
|
||||||
if (onDismiss()) HideDropDown();
|
if (onDismiss()) HideDropDown();
|
||||||
|
|||||||
Reference in New Issue
Block a user