mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
FIX: hide use ams when no printer
Change-Id: I8bc32145102fbb06ec93b56d4f49754aab10c03c
This commit is contained in:
parent
e87860e033
commit
00284f52b8
1 changed files with 5 additions and 1 deletions
|
@ -2029,10 +2029,14 @@ void SelectMachineDialog::update_show_status()
|
||||||
|
|
||||||
NetworkAgent* agent = Slic3r::GUI::wxGetApp().getAgent();
|
NetworkAgent* agent = Slic3r::GUI::wxGetApp().getAgent();
|
||||||
DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
|
DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
|
||||||
if (!agent) return;
|
if (!agent) {
|
||||||
|
update_ams_check(nullptr);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!dev) return;
|
if (!dev) return;
|
||||||
MachineObject* obj_ = dev->get_my_machine(m_printer_last_select);
|
MachineObject* obj_ = dev->get_my_machine(m_printer_last_select);
|
||||||
if (!obj_) {
|
if (!obj_) {
|
||||||
|
update_ams_check(nullptr);
|
||||||
if (agent) {
|
if (agent) {
|
||||||
if (agent->is_user_login()) {
|
if (agent->is_user_login()) {
|
||||||
show_status(PrintDialogStatus::PrintStatusInvalidPrinter);
|
show_status(PrintDialogStatus::PrintStatusInvalidPrinter);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue