remove some ugly hacks

This commit is contained in:
Chris Forbes
2010-03-16 19:55:43 +13:00
parent 7af5ef2a65
commit 6855732954
2 changed files with 41 additions and 54 deletions

View File

@@ -131,9 +131,7 @@ namespace OpenRA
var widgetYaml = m.ChromeLayout.Select(a => MiniYaml.FromFile(a)).Aggregate(MiniYaml.Merge);
// Hack around a bug in MiniYaml
widgetYaml.Values.FirstOrDefault().Value = widgetYaml.Keys.FirstOrDefault();
WidgetLoader.rootWidget = WidgetLoader.LoadWidget(widgetYaml.Values.FirstOrDefault());
WidgetLoader.rootWidget = WidgetLoader.LoadWidget( widgetYaml.FirstOrDefault() );
WidgetLoader.rootWidget.Initialize();
}