mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
ENH:adjust the order of print checks
jira:[STUDIO-10949] Change-Id: I7013697384a2586c50e441f6bf9d15401fdf7bb5 (cherry picked from commit 2c0953a5540912f5c1fdae9ed9905cc1b1e2af45)
This commit is contained in:
@@ -3434,32 +3434,6 @@ void SelectMachineDialog::update_show_status()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// no ams
|
|
||||||
if (!obj_->has_ams() || m_checkbox_list["use_ams"]->getValue() != "on") {
|
|
||||||
if (!has_tips(obj_)) {
|
|
||||||
if (has_timelapse_warning()) {
|
|
||||||
show_status(PrintDialogStatus::PrintStatusTimelapseWarning);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
show_status(PrintDialogStatus::PrintStatusReadingFinished);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_checkbox_list["use_ams"]->getValue() != "on") {
|
|
||||||
m_ams_mapping_result.clear();
|
|
||||||
sync_ams_mapping_result(m_ams_mapping_result);
|
|
||||||
|
|
||||||
if (has_timelapse_warning()) {
|
|
||||||
show_status(PrintDialogStatus::PrintStatusTimelapseWarning);
|
|
||||||
} else {
|
|
||||||
show_status(PrintDialogStatus::PrintStatusDisableAms);
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const auto& full_config = wxGetApp().preset_bundle->full_config();
|
const auto& full_config = wxGetApp().preset_bundle->full_config();
|
||||||
size_t nozzle_nums = full_config.option<ConfigOptionFloats>("nozzle_diameter")->values.size();
|
size_t nozzle_nums = full_config.option<ConfigOptionFloats>("nozzle_diameter")->values.size();
|
||||||
|
|
||||||
@@ -3557,6 +3531,31 @@ void SelectMachineDialog::update_show_status()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// no ams
|
||||||
|
if (!obj_->has_ams() || m_checkbox_list["use_ams"]->getValue() != "on") {
|
||||||
|
if (!has_tips(obj_)) {
|
||||||
|
if (has_timelapse_warning()) {
|
||||||
|
show_status(PrintDialogStatus::PrintStatusTimelapseWarning);
|
||||||
|
} else {
|
||||||
|
show_status(PrintDialogStatus::PrintStatusReadingFinished);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (m_checkbox_list["use_ams"]->getValue() != "on") {
|
||||||
|
m_ams_mapping_result.clear();
|
||||||
|
sync_ams_mapping_result(m_ams_mapping_result);
|
||||||
|
|
||||||
|
if (has_timelapse_warning()) {
|
||||||
|
show_status(PrintDialogStatus::PrintStatusTimelapseWarning);
|
||||||
|
} else {
|
||||||
|
show_status(PrintDialogStatus::PrintStatusDisableAms);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (obj_->is_ams_on_settingup())
|
if (obj_->is_ams_on_settingup())
|
||||||
{
|
{
|
||||||
show_status(PrintDialogStatus::PrintStatusAmsOnSettingup);
|
show_status(PrintDialogStatus::PrintStatusAmsOnSettingup);
|
||||||
|
|||||||
Reference in New Issue
Block a user