ENH:add L macro as some err desciption
jira:[for translate] Change-Id: I61d45fc416d188670a9b812638a3a4764a1873e8
This commit is contained in:
parent
d787873e97
commit
2a628441f3
|
@ -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_lan_str = _L("Sending print job over LAN");
|
||||||
static wxString sending_over_cloud_str = _L("Sending print job through cloud service");
|
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<ProgressIndicator> pri, Plater* plater, std::string dev_id)
|
PrintJob::PrintJob(std::shared_ptr<ProgressIndicator> pri, Plater* plater, std::string dev_id)
|
||||||
: PlaterJob{ std::move(pri), plater },
|
: PlaterJob{ std::move(pri), plater },
|
||||||
m_dev_id(dev_id),
|
m_dev_id(dev_id),
|
||||||
|
@ -431,8 +434,8 @@ void PrintJob::process()
|
||||||
time_out++;
|
time_out++;
|
||||||
boost::this_thread::sleep_for(boost::chrono::milliseconds(1000));
|
boost::this_thread::sleep_for(boost::chrono::milliseconds(1000));
|
||||||
}
|
}
|
||||||
this->update_status(curr_percent, _L("Print task sending times out."));
|
//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.");
|
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_;
|
BOOST_LOG_TRIVIAL(info) << "print_job: timeout, cancel the job" << obj->job_id_;
|
||||||
/* handle tiemout */
|
/* handle tiemout */
|
||||||
obj->command_task_cancel(curr_job_id);
|
obj->command_task_cancel(curr_job_id);
|
||||||
|
|
Loading…
Reference in New Issue