mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 06:37:36 +00:00
LibCore: Convert CTimer to ObjectPtr
This commit is contained in:
parent
c34fd10b5b
commit
50a6560413
22 changed files with 91 additions and 70 deletions
|
@ -10,7 +10,7 @@ WSMenuManager::WSMenuManager()
|
|||
{
|
||||
m_username = getlogin();
|
||||
|
||||
new CTimer(300, [this] {
|
||||
m_timer = CTimer::create(300, [this] {
|
||||
static time_t last_update_time;
|
||||
time_t now = time(nullptr);
|
||||
if (now != last_update_time || m_cpu_monitor.is_dirty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue