GamesSettings: Use on_change callback for resetting cards defaults
This commit is contained in:
parent
1d243ef3e3
commit
c2e13764bc
Notes:
sideshowbarker
2024-07-17 01:51:00 +09:00
Author: https://github.com/lanmonster Commit: https://github.com/SerenityOS/serenity/commit/c2e13764bc Pull-request: https://github.com/SerenityOS/serenity/pull/23589 Reviewed-by: https://github.com/AtkinsSJ
1 changed files with 0 additions and 4 deletions
|
@ -124,11 +124,7 @@ void CardSettingsWidget::reset_default_values()
|
|||
{
|
||||
m_background_color_input->set_color(Gfx::Color::from_rgb(0x008000));
|
||||
set_card_back_image_path(default_card_back_image_path);
|
||||
// FIXME: `set_text()` on a combobox doesn't trigger the `on_change` callback, but it probably should!
|
||||
// Until then, we have to manually tell the preview to update.
|
||||
m_card_front_images_combo_box->set_text(default_card_front_image_set);
|
||||
Cards::CardPainter::the().set_front_images_set_name(card_front_images_set_name());
|
||||
m_preview_frame->update();
|
||||
}
|
||||
|
||||
bool CardSettingsWidget::set_card_back_image_path(StringView path)
|
||||
|
|
Loading…
Add table
Reference in a new issue