1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

LibGUI: Add a timer in ProcessChooser to get processes for every 1000ms

This commit is contained in:
Uma Sankar 2020-08-14 22:48:33 +05:30 committed by Andreas Kling
parent cdae3f53f1
commit d5a77de906
2 changed files with 33 additions and 0 deletions

View file

@ -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;
};
}