FIX:fixed studio no response after canceling printing

Change-Id: Ic4cb35b896fd49df2cbd6676324dd80ed617db6c
This commit is contained in:
tao wang 2023-05-31 17:07:53 +08:00 committed by Lane.Wei
parent bea2be1e18
commit 1252e9ab93
2 changed files with 7 additions and 2 deletions

View file

@ -456,7 +456,10 @@ void PrintJob::process()
msg_text = send_print_failed_str;
}
this->show_error_info(msg_text, 0, "", "");
if (result != BAMBU_NETWORK_ERR_CANCELED) {
this->show_error_info(msg_text, 0, "", "");
}
BOOST_LOG_TRIVIAL(error) << "print_job: failed, result = " << result;
} else {