LibGUI: Add and use TextEditor::hide_autocomplete()

There were cases where the autocomplete box was being hidden but the
autocomplete timer wasn't being cancelled.
This commit is contained in:
thislooksfun 2021-10-28 20:23:58 -05:00 committed by Andreas Kling
commit 352f593958
Notes: sideshowbarker 2024-07-18 01:34:13 +09:00
2 changed files with 14 additions and 7 deletions

View file

@ -282,6 +282,7 @@ private:
void try_update_autocomplete(Function<void()> callback = {});
void force_update_autocomplete(Function<void()> callback = {});
void hide_autocomplete_if_needed();
void hide_autocomplete();
int icon_size() const { return 16; }
int icon_padding() const { return 2; }