1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

LibCore+Applications: Put timeout parameter first in debounce()

This matches the parameter order for Core::Timer's factory methods,
stops clang-format freaking out so much, and just seems nicer to
me. :^)
This commit is contained in:
Sam Atkins 2023-06-14 14:54:46 +01:00 committed by Andreas Kling
parent 4c349165f2
commit 08edc872aa
5 changed files with 10 additions and 14 deletions

View file

@ -62,7 +62,7 @@ CharacterSearchWidget::CharacterSearchWidget()
m_search_input->on_up_pressed = [this] { m_results_table->move_cursor(GUI::AbstractView::CursorMovement::Up, GUI::AbstractView::SelectionUpdate::Set); };
m_search_input->on_down_pressed = [this] { m_results_table->move_cursor(GUI::AbstractView::CursorMovement::Down, GUI::AbstractView::SelectionUpdate::Set); };
m_search_input->on_change = Core::debounce([this] { search(); }, 100);
m_search_input->on_change = Core::debounce(100, [this] { search(); });
m_results_table->horizontal_scrollbar().set_visible(false);
m_results_table->set_column_headers_visible(false);