mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 09:20:36 +00:00
2048: Do not default to only temporarily applying settings changes
Also tweak its text in the settings window to be clearer on what this check box is doing. Seemed a bit confusing that settings changes required an extra action to persist.
This commit is contained in:
parent
1a66f487a5
commit
97cee35471
Notes:
sideshowbarker
2024-07-18 17:50:26 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/97cee35471e Pull-request: https://github.com/SerenityOS/serenity/pull/7256
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ GameSizeDialog::GameSizeDialog(GUI::Window* parent, size_t board_size, size_t ta
|
|||
evil_ai_checkbox.set_checked(m_evil_ai);
|
||||
evil_ai_checkbox.on_checked = [this](auto checked) { m_evil_ai = checked; };
|
||||
|
||||
auto& temp_checkbox = main_widget.add<GUI::CheckBox>("Temporary");
|
||||
auto& temp_checkbox = main_widget.add<GUI::CheckBox>("Temporarily apply changes");
|
||||
temp_checkbox.set_checked(m_temporary);
|
||||
temp_checkbox.on_checked = [this](auto checked) { m_temporary = checked; };
|
||||
|
||||
|
|
|
@ -23,5 +23,5 @@ private:
|
|||
size_t m_board_size;
|
||||
size_t m_target_tile_power;
|
||||
bool m_evil_ai;
|
||||
bool m_temporary { true };
|
||||
bool m_temporary { false };
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue