mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-09 00:07:45 -07:00
ENH: delete useless function, delay start_device_subscribe after mqtt_connect called
jira: [STUDIO-13135] Change-Id: Ibce80b043d08f6c1c7baa6611c3cfa2f0c85f2f5 (cherry picked from commit c2ff073525937fb571ea8d3bfae55231adaa691d)
This commit is contained in:
parent
92a8b0b43e
commit
d6e87fc0b7
7 changed files with 1 additions and 83 deletions
|
|
@ -2339,27 +2339,6 @@ void SelectMachineDialog::Enable_Auto_Refill(bool enable)
|
|||
m_ams_backup_tip->Refresh();
|
||||
}
|
||||
|
||||
void SelectMachineDialog::connect_printer_mqtt()
|
||||
{
|
||||
DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
|
||||
if (!dev) return;
|
||||
MachineObject* obj_ = dev->get_selected_machine();
|
||||
|
||||
if (obj_->connection_type() == "cloud") {
|
||||
show_status(PrintDialogStatus::PrintStatusSending);
|
||||
m_status_bar->disable_cancel_button();
|
||||
m_status_bar->set_status_text(_L("Connecting to the printer. Unable to cancel during the connection process."));
|
||||
#if !BBL_RELEASE_TO_PUBLIC
|
||||
obj_->connect(wxGetApp().app_config->get("enable_ssl_for_mqtt") == "true" ? true : false);
|
||||
#else
|
||||
obj_->connect(obj_->local_use_ssl_for_mqtt);
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
on_send_print();
|
||||
}
|
||||
}
|
||||
|
||||
static bool _HasExt(const std::vector<FilamentInfo> &ams_mapping_result) {
|
||||
if (ams_mapping_result.empty()) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue