fix some bug

This commit is contained in:
QIDI TECH
2025-05-24 10:17:38 +08:00
parent b68290818e
commit 6d0ec79031
2 changed files with 10 additions and 9 deletions

View File

@@ -2565,7 +2565,9 @@ bool Sidebar::reset_bed_type_combox_choices() {
const VendorProfile::PrinterModel *pm = PresetUtils::system_printer_model(*curr);
if (!pm) {
auto curr_parent = bundle->printers.get_selected_preset_parent();
pm = PresetUtils::system_printer_model(*curr_parent);
//y62
if(curr_parent)
pm = PresetUtils::system_printer_model(*curr_parent);
}
//y58
//if (m_last_combo_bedtype_count != 0 && pm) {