Fix the actor edit panel not always getting closed properly

This commit is contained in:
abcdefg30
2022-12-13 00:14:14 +01:00
committed by Paul Chote
parent 8513de0b47
commit 0f149f1143

View File

@@ -377,11 +377,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
actorEditPanel.Bounds.X = origin.X + editPanelPadding;
actorEditPanel.Bounds.Y = origin.Y;
}
else
else if (CurrentActor != null)
{
// Selected actor is null, hide the border and edit panel.
actorIDField.YieldKeyboardFocus();
CurrentActor = null;
Close();
}
}