Skip to content

Commit

Permalink
hide popup
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Jul 22, 2024
1 parent 408092f commit d7c951d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions OneMore/Commands/Tagging/HashtagDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ private async void DoSearchTags(object sender, EventArgs e)

private async Task SearchTags(object sender, EventArgs e)
{
if (palette.IsPopupVisible)
{
palette.HidePopup(sender, e);
}

var where = tagBox.Text.Trim();
if (where.IsNullOrEmpty())
{
Expand Down
4 changes: 2 additions & 2 deletions OneMore/UI/MoreAutoCompleteList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ public void LoadCommands(IEnumerable<string> names, IEnumerable<string> recentNa
#endregion public SetAutoCompleteList and LoadCommands


#region private HidePopup and ShowPopUp
private void HidePopup(object sender, EventArgs e)
#region HidePopup and ShowPopUp
public void HidePopup(object sender, EventArgs e)
{
if (popup?.Visible == true) // && !popup.Focused)
{
Expand Down

0 comments on commit d7c951d

Please sign in to comment.