fix automatic tab selection

This commit is contained in:
Chris Forbes
2010-04-16 18:39:43 +12:00
parent ccd440d461
commit fc327fd074
3 changed files with 16 additions and 6 deletions

View File

@@ -19,6 +19,7 @@
#endregion
using System.Linq;
using OpenRA.Widgets;
namespace OpenRA.Traits
{
@@ -38,7 +39,8 @@ namespace OpenRA.Traits
if (produces == null)
return;
//Game.chrome.SetCurrentTab(produces);
Chrome.rootWidget.GetWidget<BuildPaletteWidget>("INGAME_BUILD_PALETTE")
.SetCurrentTab(produces);
}
}
}