mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 05:07:51 -06:00
FIX: cannot calibrate when printer is offline [STUDIO-3387]
Change-Id: I93cf532363bc41feee0deb9782906bd3e79ee127
This commit is contained in:
parent
7b6b4bd958
commit
59b6b59a9a
4 changed files with 18 additions and 1 deletions
|
@ -1159,6 +1159,10 @@ void CalibrationPresetPage::update_show_status()
|
|||
show_status(CaliPresetPageStatus::CaliPresetStatusUnsupportedPrinter);
|
||||
return;
|
||||
}
|
||||
else if (obj_->is_connecting() || !obj_->is_connected()) {
|
||||
show_status(CaliPresetPageStatus::CaliPresetStatusInConnecting);
|
||||
return;
|
||||
}
|
||||
else if (obj_->is_in_upgrading()) {
|
||||
show_status(CaliPresetPageStatus::CaliPresetStatusInUpgrading);
|
||||
return;
|
||||
|
@ -1310,6 +1314,11 @@ void CalibrationPresetPage::show_status(CaliPresetPageStatus status)
|
|||
update_print_status_msg(wxEmptyString, false);
|
||||
Enable_Send_Button(false);
|
||||
}
|
||||
else if (status == CaliPresetPageStatus::CaliPresetStatusInConnecting) {
|
||||
wxString msg_text = _L("Connecting to printer");
|
||||
update_print_status_msg(msg_text, true);
|
||||
Enable_Send_Button(false);
|
||||
}
|
||||
|
||||
Layout();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue