Skip to content

Commit

Permalink
LibGUI: Add AutocompleteProvider::has_suggestions()
Browse files Browse the repository at this point in the history
  • Loading branch information
thislooksfun authored and awesomekling committed Nov 2, 2021
1 parent 1bf428d commit 713b6ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Userland/Libraries/LibGUI/AutocompleteProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class AutocompleteBox final {
void show(Gfx::IntPoint suggestion_box_location);
void close();

bool has_suggestions() { return m_suggestion_view->model()->row_count() > 0; }
void next_suggestion();
void previous_suggestion();
void apply_suggestion();
Expand Down

0 comments on commit 713b6ba

Please sign in to comment.