1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +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

@ -70,10 +70,9 @@ MainWidget::MainWidget()
if (font_entry != "default")
m_editor->set_font(Gfx::FontDatabase::the().get_by_name(font_entry));
m_editor->on_change = Core::debounce([this] {
m_editor->on_change = Core::debounce(100, [this] {
update_preview();
},
100);
});
m_editor->on_modified_change = [this](bool modified) {
window()->set_modified(modified);