mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
ENH:optimize the logic of disconnecting printers
Change-Id: I01b42b213c46929bebd8106e6c17a53bdcb5fd7c
This commit is contained in:
@@ -3767,7 +3767,7 @@ bool SelectMachineDialog::Show(bool show)
|
||||
DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
|
||||
if (dev) {
|
||||
MachineObject* obj_ = dev->get_selected_machine();
|
||||
if (obj_->connection_type() == "cloud") {
|
||||
if (obj_ && obj_->connection_type() == "cloud" && m_print_type == FROM_SDCARD_VIEW) {
|
||||
obj_->disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user