Ingame options: chrome -> widgets

This commit is contained in:
Paul Chote
2010-04-10 13:05:20 +12:00
committed by Chris Forbes
parent 8f10e3ac81
commit c568be255a
6 changed files with 121 additions and 41 deletions

View File

@@ -152,7 +152,9 @@ namespace OpenRA.Widgets
public Widget ShowMenu(string menu)
{
GetCurrentMenu().Visible = false;
var m = GetCurrentMenu();
if (m != null)
m.Visible = false;
var widget = GetWidget(menu);
if (widget != null)