mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibGUI: Add a timer in ProcessChooser to get processes for every 1000ms
This commit is contained in:
parent
cdae3f53f1
commit
d5a77de906
Notes:
sideshowbarker
2024-07-19 03:37:49 +09:00
Author: https://github.com/umasankar-yedida 🔰
Commit: d5a77de906
Pull-request: https://github.com/SerenityOS/serenity/pull/3132
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
2 changed files with 33 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/Dialog.h>
|
||||
#include <LibCore/Timer.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
@ -46,6 +47,10 @@ private:
|
|||
String m_window_title;
|
||||
String m_button_label;
|
||||
RefPtr<Gfx::Bitmap> m_window_icon;
|
||||
|
||||
bool m_refresh_enabled { true };
|
||||
unsigned m_refresh_interval { 1000 };
|
||||
RefPtr<Core::Timer> m_refresh_timer;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue