mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: fix crash bug when switching resolution
jira: none Change-Id: Ie1879a2a120502db2f2a9b3b8cac1f8a2b9737f9 (cherry picked from commit 28d0fc9bbe40386f799aa3dab3367aed56fe0d0a)
This commit is contained in:
@@ -8447,10 +8447,13 @@ bool Plater::priv::check_ams_status_impl()
|
||||
}
|
||||
}
|
||||
|
||||
bool is_same_as_printer = preset_bundle->extruder_ams_counts[0][4] == main_4
|
||||
bool is_same_as_printer = false;
|
||||
if (!preset_bundle->extruder_ams_counts.empty() && !preset_bundle->extruder_ams_counts.front().empty()) {
|
||||
is_same_as_printer = preset_bundle->extruder_ams_counts[0][4] == main_4
|
||||
&& preset_bundle->extruder_ams_counts[0][1] == main_1
|
||||
&& preset_bundle->extruder_ams_counts[1][4] == deputy_4
|
||||
&& preset_bundle->extruder_ams_counts[1][1] == deputy_1;
|
||||
}
|
||||
|
||||
if (!is_same_as_printer) {
|
||||
struct SyncInfoDialog : MessageDialog
|
||||
|
||||
@@ -4905,7 +4905,7 @@ void StatusPanel::msw_rescale()
|
||||
|
||||
m_bpButton_xy->Rescale();
|
||||
auto size = TEMP_CTRL_MIN_SIZE_OF_SINGLE_NOZZLE;
|
||||
if (obj->m_extder_data.total_extder_count >= 2) size = TEMP_CTRL_MIN_SIZE_OF_DOUBLE_NOZZLE;
|
||||
if (obj && obj->m_extder_data.total_extder_count >= 2) size = TEMP_CTRL_MIN_SIZE_OF_DOUBLE_NOZZLE;
|
||||
m_tempCtrl_nozzle->SetMinSize(size);
|
||||
m_tempCtrl_nozzle->Rescale();
|
||||
m_tempCtrl_nozzle_deputy->SetMinSize(size);
|
||||
|
||||
Reference in New Issue
Block a user