Fix missing plate bed override normalization in Configuration Wizard (#16365)

This commit is contained in:
Kiss Lorand
2026-10-11 20:54:55 -03:00
committed by GitHub
parent d5a11eb076
commit f4bde2da0a
3 changed files with 6 additions and 8 deletions
+3
View File
@@ -81,6 +81,7 @@
#include "MsgDialog.hpp"
#include "UnsavedChangesDialog.hpp"
#include "MainFrame.hpp"
#include "Plater.hpp"
namespace fs = boost::filesystem;
@@ -2813,6 +2814,8 @@ bool ConfigWizard::run(RunReason reason, StartPage start_page)
app.app_config->set_legacy_datadir(false);
app.update_mode();
if (Plater *plater = app.plater())
plater->normalize_bed_types(false);
// BBS
//app.obj_manipul()->update_ui_from_settings();
BOOST_LOG_TRIVIAL(info) << "ConfigWizard applied";
+1 -6
View File
@@ -77,11 +77,8 @@ ParamsDialog::ParamsDialog(wxWindow * parent)
auto &preset_bundle = *wxGetApp().preset_bundle;
const bool supports_multiple_bed_types = preset_bundle.is_bbl_vendor() ||
preset_bundle.printers.get_edited_preset().config.opt_bool("support_multi_bed_types");
if (m_initial_multi_bed_types != supports_multiple_bed_types) {
if (m_initial_multi_bed_types != supports_multiple_bed_types)
wxGetApp().plater()->normalize_bed_types(true);
if (auto *plate_tab = dynamic_cast<TabPrintPlate *>(wxGetApp().get_plate_tab()))
plate_tab->update_model_config();
}
}
if (!m_editing_filament_id.empty()) {
@@ -93,8 +90,6 @@ ParamsDialog::ParamsDialog(wxWindow * parent)
#endif
wxGetApp().sidebar().finish_param_edit();
});
//wxGetApp().UpdateDlgDarkUI(this);
}
void ParamsDialog::Popup()
+2 -2
View File
@@ -15609,7 +15609,7 @@ void Plater::reset_project_dirty_initial_presets() { p->reset_project_dirty_init
void Plater::render_project_state_debug_window() const { p->render_project_state_debug_window(); }
#endif // ENABLE_PROJECT_DIRTY_STATE_DEBUG_WINDOW
void Plater::normalize_bed_types(bool printer_setting_changed)
void Plater::normalize_bed_types(bool multi_bed_changed)
{
if (only_gcode_mode() || is_gcode_3mf())
return;
@@ -15635,7 +15635,7 @@ void Plater::normalize_bed_types(bool printer_setting_changed)
}
// Refresh the controls after a capability change, even when no override was reset.
if (printer_setting_changed || overrides_reset) {
if (multi_bed_changed || overrides_reset) {
sidebar().update_all_preset_comboboxes();
wxGetApp().obj_list()->update_and_show_object_settings_item();
}