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
commit d5a77de906
Notes: sideshowbarker 2024-07-19 03:37:49 +09:00
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;
};
}