mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-05 14:27:42 -07:00
ENH: remove unused codes
jira: [none] Change-Id: Ia4c14367577ffff9ddcdaf528a8e79f9c1a59209 (cherry picked from commit 7ac47daa69c25c1830ebe4a54b8ce25fdfb00114)
This commit is contained in:
parent
6547cb766c
commit
f5314b2ae1
1 changed files with 0 additions and 33 deletions
|
|
@ -118,40 +118,7 @@ void SyncAmsInfoDialog::updata_ui_data_after_connected_printer() {
|
|||
|
||||
void SyncAmsInfoDialog::update_select_layout(MachineObject *obj)
|
||||
{
|
||||
m_checkbox_list["timelapse"]->Hide();
|
||||
m_checkbox_list["bed_leveling"]->Hide();
|
||||
m_checkbox_list["use_ams"]->Hide();
|
||||
m_checkbox_list["nozzle_offset_cali"]->Hide();
|
||||
|
||||
if (!obj) { return; }
|
||||
AppConfig *config = wxGetApp().app_config;
|
||||
|
||||
if (obj->is_enable_np) {
|
||||
m_checkbox_list["nozzle_offset_cali"]->Show();
|
||||
m_checkbox_list["nozzle_offset_cali"]->update_options(ops_auto, wxEmptyString);
|
||||
m_checkbox_list["bed_leveling"]->update_options(ops_auto, wxEmptyString);
|
||||
|
||||
m_checkbox_list["nozzle_offset_cali"]->setValue("auto");
|
||||
m_checkbox_list["bed_leveling"]->setValue("auto");
|
||||
} else {
|
||||
m_checkbox_list["bed_leveling"]->update_options(ops_no_auto, wxEmptyString);
|
||||
|
||||
if (config && config->get("print", "bed_leveling") == "0") {
|
||||
m_checkbox_list["bed_leveling"]->setValue("off");
|
||||
} else {
|
||||
m_checkbox_list["bed_leveling"]->setValue("on");
|
||||
}
|
||||
}
|
||||
|
||||
update_timelapse_enable_status();
|
||||
|
||||
if (config && config->get("print", "timelapse") == "0") {
|
||||
m_checkbox_list["timelapse"]->setValue("off");
|
||||
} else {
|
||||
m_checkbox_list["timelapse"]->setValue("on");
|
||||
}
|
||||
Layout();
|
||||
Fit();
|
||||
}
|
||||
|
||||
void SyncAmsInfoDialog::set_default_normal(const ThumbnailData &data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue