mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
ENH:C11 printer will not check ip and access code
Change-Id: Ib103ddb848a1ef835582b62c9de22ac17b9fa426
This commit is contained in:
parent
bea48a08d6
commit
cf46b21003
5 changed files with 61 additions and 48 deletions
|
@ -868,14 +868,16 @@ void SendToPrinterDialog::on_selection_changed(wxCommandEvent &event)
|
|||
}
|
||||
|
||||
//check ip address
|
||||
if (obj->dev_ip.empty() || obj->get_access_code().empty()) {
|
||||
BOOST_LOG_TRIVIAL(info) << "MachineObject IP is empty ";
|
||||
std::string app_config_dev_ip = Slic3r::GUI::wxGetApp().app_config->get("ip_address", obj->dev_id);
|
||||
if (app_config_dev_ip.empty() || obj->get_access_code().empty()) {
|
||||
wxGetApp().show_ip_address_enter_dialog();
|
||||
if (obj->is_function_supported(PrinterFunction::FUNC_SEND_TO_SDCARD)) {
|
||||
if (obj->dev_ip.empty() || obj->get_access_code().empty()) {
|
||||
BOOST_LOG_TRIVIAL(info) << "MachineObject IP is empty ";
|
||||
std::string app_config_dev_ip = Slic3r::GUI::wxGetApp().app_config->get("ip_address", obj->dev_id);
|
||||
if (app_config_dev_ip.empty() || obj->get_access_code().empty()) {
|
||||
wxGetApp().show_ip_address_enter_dialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
update_show_status();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue