diff --git a/src/slic3r/GUI/Jobs/PrintJob.cpp b/src/slic3r/GUI/Jobs/PrintJob.cpp index 33a9f08522..b2a7779a59 100644 --- a/src/slic3r/GUI/Jobs/PrintJob.cpp +++ b/src/slic3r/GUI/Jobs/PrintJob.cpp @@ -492,8 +492,11 @@ void PrintJob::process(Ctl &ctl) return true; }; - - if (params.connection_type != "lan") { + if (m_print_type == "from_sdcard_view") { + BOOST_LOG_TRIVIAL(info) << "print_job: try to send with cloud, model is sdcard view"; + ctl.update_status(curr_percent, _u8L("Sending print job through cloud service")); + result = m_agent->start_sdcard_print(params, update_fn, cancel_fn); + } else if (params.connection_type != "lan") { if (params.dev_ip.empty()) params.comments = "no_ip"; else if (this->cloud_print_only) @@ -505,12 +508,7 @@ void PrintJob::process(Ctl &ctl) //use ftp only - if (m_print_type == "from_sdcard_view") { - BOOST_LOG_TRIVIAL(info) << "print_job: try to send with cloud, model is sdcard view"; - ctl.update_status(curr_percent, _u8L("Sending print job through cloud service")); - result = m_agent->start_sdcard_print(params, update_fn, cancel_fn); - } - else if (!wxGetApp().app_config->get("lan_mode_only").empty() && wxGetApp().app_config->get("lan_mode_only") == "1") { + if (!wxGetApp().app_config->get("lan_mode_only").empty() && wxGetApp().app_config->get("lan_mode_only") == "1") { if (params.password.empty() || params.dev_ip.empty()) { error_text = wxString::Format(_L("Access code:%s IP address:%s"), params.password, params.dev_ip);