Remove unused InitDelegates() method. Don't mutate the Children list directly.

This commit is contained in:
Paul Chote
2011-01-23 10:13:14 +13:00
parent 3fe549d0a4
commit 646863b85b
6 changed files with 14 additions and 18 deletions

View File

@@ -301,7 +301,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
{
// This causes problems for people who are in the process of editing their names (the widgets vanish from beneath them)
// Todo: handle this nicer
Players.ClearChildren();
Players.RemoveChildren();
foreach (var slot in orderManager.LobbyInfo.Slots)
{

View File

@@ -40,7 +40,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
var template = widget.GetWidget<LabelWidget>("REPLAY_TEMPLATE");
CurrentReplay = null;
rl.ClearChildren();
rl.RemoveChildren();
foreach (var replayFile in Directory.GetFiles(replayDir, "*.rep").Reverse())
AddReplay(rl, replayFile, template);

View File

@@ -123,7 +123,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
var sl = bg.GetWidget<ScrollPanelWidget>("SERVER_LIST");
sl.ClearChildren();
sl.RemoveChildren();
currentServer = null;
if (games == null)