mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
FIX: Remove redundant calls to set_selected_machine when disconnecting LAN
jira: [STUDIO-13828] Change-Id: Icb2cca28cddec1e4e6b6b14b6893777db1f1a3a8 (cherry picked from commit 477fd8d3cf3adad8daaa00d95244225d9ac800b3)
This commit is contained in:
@@ -182,9 +182,6 @@ void ConnectPrinterDialog::on_button_confirm(wxCommandEvent &event)
|
|||||||
}
|
}
|
||||||
if (m_obj) {
|
if (m_obj) {
|
||||||
m_obj->set_user_access_code(code.ToStdString());
|
m_obj->set_user_access_code(code.ToStdString());
|
||||||
if (m_need_connect) {
|
|
||||||
wxGetApp().getDeviceManager()->set_selected_machine(m_obj->get_dev_id());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
EndModal(wxID_OK);
|
EndModal(wxID_OK);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ class ConnectPrinterDialog : public DPIDialog
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
protected:
|
protected:
|
||||||
bool m_need_connect{true};
|
|
||||||
wxStaticText * m_staticText_connection_code;
|
wxStaticText * m_staticText_connection_code;
|
||||||
TextInput * m_textCtrl_code;
|
TextInput * m_textCtrl_code;
|
||||||
Button * m_button_confirm;
|
Button * m_button_confirm;
|
||||||
@@ -46,7 +45,6 @@ public:
|
|||||||
|
|
||||||
~ConnectPrinterDialog();
|
~ConnectPrinterDialog();
|
||||||
|
|
||||||
void go_connect_printer(bool need) {m_need_connect = need;};
|
|
||||||
void end_modal(wxStandardID id);
|
void end_modal(wxStandardID id);
|
||||||
void init_bitmap();
|
void init_bitmap();
|
||||||
void set_machine_object(MachineObject* obj);
|
void set_machine_object(MachineObject* obj);
|
||||||
|
|||||||
Reference in New Issue
Block a user