fix some bug

This commit is contained in:
QIDI TECH
2025-05-09 20:39:27 +08:00
parent 9b0892b7c2
commit 958f8339bc
6 changed files with 43 additions and 13 deletions

View File

@@ -1912,8 +1912,18 @@ void SendToPrinterDialog::set_default()
show_error(this, ex.what(), false);
}
}
else
filename = m_plater->get_output_filename();
else{
try{
filename = m_plater->get_output_filename();
}
catch (const Slic3r::PlaceholderParserError& ex) {
// Show the error with monospaced font.
show_error(this, ex.what(), true);
}
catch (const std::exception &ex) {
show_error(this, ex.what(), false);
}
}
if (m_print_plate_idx == PLATE_ALL_IDX && filename.empty()) {
filename = _L("Untitled");