瀏覽代碼

GamesSettings: Use on_change callback for resetting cards defaults

Kyle Lanmon 1 年之前
父節點
當前提交
c2e13764bc
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      Userland/Applications/GamesSettings/CardSettingsWidget.cpp

+ 0 - 4
Userland/Applications/GamesSettings/CardSettingsWidget.cpp

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