hack hack hack - no longer crash on failing to connect, etc
This commit is contained in:
@@ -215,7 +215,8 @@ namespace OpenRA.Widgets
|
||||
|
||||
public Widget OpenWindow(string id)
|
||||
{
|
||||
Chrome.rootWidget.GetWidget(WindowList.Peek()).Visible = false;
|
||||
if (WindowList.Count > 0)
|
||||
Chrome.rootWidget.GetWidget(WindowList.Peek()).Visible = false;
|
||||
WindowList.Push(id);
|
||||
var window = Chrome.rootWidget.GetWidget(id);
|
||||
window.Visible = true;
|
||||
|
||||
Reference in New Issue
Block a user