fix LockTeams checkbox by not using the binder

This commit is contained in:
Chris Forbes
2011-01-28 17:31:24 +13:00
parent 0f3b6a7cd4
commit a8d848b3c4
2 changed files with 3 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
};
var lockTeamsCheckbox = lobby.GetWidget<CheckboxWidget>("LOCKTEAMS_CHECKBOX");
lockTeamsCheckbox.BindReadOnly(orderManager.LobbyInfo.GlobalSettings, "LockTeams");
lockTeamsCheckbox.IsChecked = () => orderManager.LobbyInfo.GlobalSettings.LockTeams;
lockTeamsCheckbox.OnChange += _ =>
{
if (Game.IsHost)