mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
LibCore+Userland: Don't auto-start new Core::Timers
This was unintuitive, and only useful in a few cases. In the majority, users had to immediately call `stop()`, and several who did want the timer started would call `start()` on it immediately anyway. Case in point: There are only two places I had to add a manual `start()`.
This commit is contained in:
parent
a8cf0c9371
commit
6edc0cf5ab
10 changed files with 12 additions and 8 deletions
|
@ -35,6 +35,7 @@ ClockWidget::ClockWidget()
|
|||
set_tooltip(Core::DateTime::now().to_deprecated_string("%Y-%m-%d"sv));
|
||||
}
|
||||
});
|
||||
m_timer->start();
|
||||
|
||||
m_calendar_window = add<GUI::Window>(window());
|
||||
m_calendar_window->set_window_type(GUI::WindowType::Popup);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue