Skip to content

Commit

Permalink
Fix the actor edit panel not always getting closed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
abcdefg30 authored and pchote committed Dec 17, 2022
1 parent 8513de0 commit 0f149f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions OpenRA.Mods.Common/Widgets/Logic/Editor/ActorEditLogic.cs
Expand Up @@ -377,11 +377,10 @@ public override void Tick()
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();
}
}

Expand Down

0 comments on commit 0f149f1

Please sign in to comment.