diff options
author | kleines Filmröllchen <malu.bertsch@gmail.com> | 2021-11-21 00:57:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-27 12:45:44 +0100 |
commit | 1e9554145ef6b4d019ffb199dca1b37972d83066 (patch) | |
tree | d157a5a4a5ae4a068f4a52f3297ae9a2b406d53f /Userland/Libraries/LibGUI/SettingsWindow.h | |
parent | 72e9d024b927032488caf146a853882692a08cd7 (diff) | |
download | serenity-1e9554145ef6b4d019ffb199dca1b37972d83066.zip |
LibGUI: Add a cancel button callback to settings window tabs
Some settings tabs, like the ones on the upcoming terminal settings,
need to know when the cancel button is pressed to clean up things like
temporary live updates. Therefore, the SettingsWindow::Tab now features
a cancel_settings callback which does not need to be implemented.
Diffstat (limited to 'Userland/Libraries/LibGUI/SettingsWindow.h')
-rw-r--r-- | Userland/Libraries/LibGUI/SettingsWindow.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/SettingsWindow.h b/Userland/Libraries/LibGUI/SettingsWindow.h index 96e897ac2c..f68d0922c7 100644 --- a/Userland/Libraries/LibGUI/SettingsWindow.h +++ b/Userland/Libraries/LibGUI/SettingsWindow.h @@ -20,7 +20,8 @@ public: class Tab : public GUI::Widget { public: virtual void apply_settings() = 0; - virtual void reset_default_values() {}; + virtual void cancel_settings() { } + virtual void reset_default_values() { } }; enum class ShowDefaultsButton { |