Skip to content
Snippets Groups Projects
Commit 83599206 authored by George Nachman's avatar George Nachman
Browse files

When the autocomplete window opens and then discovers it has no results and...

When the autocomplete window opens and then discovers it has no results and closes it causes a nonpinned hotkey window to close because the window gets closed before becoming key. That confuses the very complex logic for autohiding. To make the smallest possible change, I do a dispatch async on the close to order it properly. Issue 6169.
parent c0879458
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -674,7 +674,9 @@ const int kMaxResultContextWords = 4;
[self reloadData:YES];
if (!populateTimer_) {
if (self.unfilteredModel.count == 0) {
[self closePopupWindow];
dispatch_async(dispatch_get_main_queue(), ^{
[self closePopupWindow];
});
} else {
[self.delegate popupIsSearching:NO];
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment