mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-05 06:17:45 -07:00
FIX: Client crash when opening certain model or select certain item in the comparator dropdown menu
Jira: STUDIO-13491 Change-Id: I40e9cb406fa1b26da9a6527ff5b0bc68d9b10a52 (cherry picked from commit 11f520e44b0ee74abef3433d2b8fefcdd326cb26)
This commit is contained in:
parent
a448cff1df
commit
91e27e8e95
2 changed files with 5 additions and 0 deletions
|
|
@ -5543,6 +5543,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||
this->preview->update_gcode_result(partplate_list.get_current_slice_result());
|
||||
release_PlateData_list(plate_data);
|
||||
sidebar->obj_list()->reload_all_plates();
|
||||
q->suppress_background_process(true);
|
||||
} else {
|
||||
partplate_list.reload_all_objects();
|
||||
}
|
||||
|
|
@ -6305,6 +6306,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||
if (msg.ShowModal() == wxID_YES) {}
|
||||
}
|
||||
}
|
||||
q->schedule_background_process(true);
|
||||
return obj_idxs;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1212,6 +1212,9 @@ static wxString get_string_value(std::string opt_key, const DynamicPrintConfig&
|
|||
opt_idx = orig_opt_idx >= 0 ? orig_opt_idx : 0;
|
||||
opt_key = get_pure_opt_key(opt_key);
|
||||
auto option = config.option(opt_key);
|
||||
if (!option) {
|
||||
return _L("N/A");
|
||||
}
|
||||
|
||||
if (option->is_scalar() && config.option(opt_key)->is_nil() ||
|
||||
option->is_vector() && dynamic_cast<const ConfigOptionVectorBase *>(config.option(opt_key))->is_nil(opt_idx))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue