mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-26 14:13:16 +08:00
Improved warning dialog.
This commit is contained in:
parent
891b6a4816
commit
1bd7be797a
@ -3040,14 +3040,9 @@ bool Plater::priv::warnings_dialog()
|
|||||||
return true;
|
return true;
|
||||||
std::string text = _u8L("There are active warnings concerning sliced models:") + "\n";
|
std::string text = _u8L("There are active warnings concerning sliced models:") + "\n";
|
||||||
for (auto const& it : current_critical_warnings) {
|
for (auto const& it : current_critical_warnings) {
|
||||||
size_t next_n = it.first.message.find_first_of('\n', 0);
|
text += "\n\n";
|
||||||
text += "\n";
|
|
||||||
if (next_n != std::string::npos)
|
|
||||||
text += it.first.message.substr(0, next_n);
|
|
||||||
else
|
|
||||||
text += it.first.message;
|
text += it.first.message;
|
||||||
}
|
}
|
||||||
//MessageDialog msg_wingow(this->q, from_u8(text), wxString(SLIC3R_APP_NAME " ") + _L("generated warnings"), wxOK);
|
|
||||||
// Changed to InfoDialog so it can show hyperlinks
|
// Changed to InfoDialog so it can show hyperlinks
|
||||||
InfoDialog msg_wingow(this->q, format_wxstr("%1% %2%", SLIC3R_APP_NAME, _L("generated warnings")), from_u8(text), true);
|
InfoDialog msg_wingow(this->q, format_wxstr("%1% %2%", SLIC3R_APP_NAME, _L("generated warnings")), from_u8(text), true);
|
||||||
const auto res = msg_wingow.ShowModal();
|
const auto res = msg_wingow.ShowModal();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user