diff --git a/src/slic3r/GUI/Jobs/PrintJob.cpp b/src/slic3r/GUI/Jobs/PrintJob.cpp index b64a5403b..05cc0ddd3 100644 --- a/src/slic3r/GUI/Jobs/PrintJob.cpp +++ b/src/slic3r/GUI/Jobs/PrintJob.cpp @@ -29,6 +29,9 @@ static wxString desc_upload_ftp_failed = _L("Failed to upload print file to static wxString sending_over_lan_str = _L("Sending print job over LAN"); static wxString sending_over_cloud_str = _L("Sending print job through cloud service"); +static wxString wait_sending_finish = _L("Print task sending times out."); +static wxString desc_wait_sending_finish = _L("The printer timed out while receiving a print job. Please check if the network is functioning properly and send the print again."); + PrintJob::PrintJob(std::shared_ptr pri, Plater* plater, std::string dev_id) : PlaterJob{ std::move(pri), plater }, m_dev_id(dev_id), @@ -431,8 +434,8 @@ void PrintJob::process() time_out++; boost::this_thread::sleep_for(boost::chrono::milliseconds(1000)); } - this->update_status(curr_percent, _L("Print task sending times out.")); - m_plater->update_print_error_info(BAMBU_NETWORK_ERR_TIMEOUT, "Print task sending times out.", "The printer timed out while receiving a print job. Please check if the network is functioning properly and send the print again."); + //this->update_status(curr_percent, _L("Print task sending times out.")); + m_plater->update_print_error_info(BAMBU_NETWORK_ERR_TIMEOUT, wait_sending_finish.ToStdString(), desc_wait_sending_finish.ToStdString()); BOOST_LOG_TRIVIAL(info) << "print_job: timeout, cancel the job" << obj->job_id_; /* handle tiemout */ obj->command_task_cancel(curr_job_id);