mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:57:34 +00:00
LibGUI: Fix typo in AutocompleteBox::show
This commit is contained in:
parent
68f420ed42
commit
9545c156b5
2 changed files with 3 additions and 3 deletions
|
@ -135,12 +135,12 @@ bool AutocompleteBox::is_visible() const
|
||||||
return m_popup_window->is_visible();
|
return m_popup_window->is_visible();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutocompleteBox::show(Gfx::IntPoint suggstion_box_location)
|
void AutocompleteBox::show(Gfx::IntPoint suggestion_box_location)
|
||||||
{
|
{
|
||||||
if (!m_suggestion_view->model() || m_suggestion_view->model()->row_count() == 0)
|
if (!m_suggestion_view->model() || m_suggestion_view->model()->row_count() == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_popup_window->move_to(suggstion_box_location);
|
m_popup_window->move_to(suggestion_box_location);
|
||||||
if (!is_visible())
|
if (!is_visible())
|
||||||
m_suggestion_view->move_cursor(GUI::AbstractView::CursorMovement::Home, GUI::AbstractTableView::SelectionUpdate::Set);
|
m_suggestion_view->move_cursor(GUI::AbstractView::CursorMovement::Home, GUI::AbstractTableView::SelectionUpdate::Set);
|
||||||
m_popup_window->show();
|
m_popup_window->show();
|
||||||
|
|
|
@ -100,7 +100,7 @@ public:
|
||||||
|
|
||||||
void update_suggestions(Vector<AutocompleteProvider::Entry>&& suggestions);
|
void update_suggestions(Vector<AutocompleteProvider::Entry>&& suggestions);
|
||||||
bool is_visible() const;
|
bool is_visible() const;
|
||||||
void show(Gfx::IntPoint suggstion_box_location);
|
void show(Gfx::IntPoint suggestion_box_location);
|
||||||
void close();
|
void close();
|
||||||
|
|
||||||
void next_suggestion();
|
void next_suggestion();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue