Fix the actor edit panel not always getting closed properly
This commit is contained in:
@@ -377,11 +377,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
actorEditPanel.Bounds.X = origin.X + editPanelPadding;
|
actorEditPanel.Bounds.X = origin.X + editPanelPadding;
|
||||||
actorEditPanel.Bounds.Y = origin.Y;
|
actorEditPanel.Bounds.Y = origin.Y;
|
||||||
}
|
}
|
||||||
else
|
else if (CurrentActor != null)
|
||||||
{
|
{
|
||||||
// Selected actor is null, hide the border and edit panel.
|
// Selected actor is null, hide the border and edit panel.
|
||||||
actorIDField.YieldKeyboardFocus();
|
Close();
|
||||||
CurrentActor = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user