Skip to content

Commit

Permalink
Invalidate drop-down autocomplete list on loadcommands (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn authored Oct 28, 2024
1 parent 76992ba commit 1329dc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OneMore/UI/MoreAutoCompleteList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ public void SetAutoCompleteList(Control control)
/// <param name="recentNames">Optional list of recently used command names</param>
public void LoadCommands(IEnumerable<string> names, IEnumerable<string> recentNames = null)
{
SuspendLayout();
Items.Clear();
commands.Clear();
matches.Clear();
Expand Down Expand Up @@ -297,6 +298,9 @@ public void LoadCommands(IEnumerable<string> names, IEnumerable<string> recentNa
{
Items[0].Selected = true;
}

Invalidate();
ResumeLayout();
}
#endregion public SetAutoCompleteList and LoadCommands

Expand Down

0 comments on commit 1329dc5

Please sign in to comment.