mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Userland: Dynamically update the MonitorSettingsWidget countdown timer
This causes the number of seconds in "Do you want to keep the new settings? They will be reverted after 10 seconds." to be dynamically updated.
This commit is contained in:
parent
413bc9976c
commit
d01ca4e3e2
3 changed files with 24 additions and 4 deletions
|
@ -35,6 +35,8 @@ public:
|
|||
static int show_error(Window* parent_window, StringView text);
|
||||
static int ask_about_unsaved_changes(Window* parent_window, StringView path, Optional<Time> last_unmodified_timestamp = {});
|
||||
|
||||
void set_text(String text);
|
||||
|
||||
private:
|
||||
explicit MessageBox(Window* parent_window, StringView text, StringView title, Type type = Type::None, InputType input_type = InputType::OK);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue