1
Fork 0
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:
stijndr 2022-02-18 00:18:34 +01:00 committed by Andreas Kling
parent 413bc9976c
commit d01ca4e3e2
3 changed files with 24 additions and 4 deletions

View file

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