mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-04 06:01:17 +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;
|
||||
std::string text = _u8L("There are active warnings concerning sliced models:") + "\n";
|
||||
for (auto const& it : current_critical_warnings) {
|
||||
size_t next_n = it.first.message.find_first_of('\n', 0);
|
||||
text += "\n";
|
||||
if (next_n != std::string::npos)
|
||||
text += it.first.message.substr(0, next_n);
|
||||
else
|
||||
text += it.first.message;
|
||||
text += "\n\n";
|
||||
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
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user