From 1bd7be797ae26ef66d68e469deca3195bf925ae9 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Thu, 8 Aug 2024 14:25:05 +0200 Subject: [PATCH] Improved warning dialog. --- src/slic3r/GUI/Plater.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 9cb270858c..fa85a3c242 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -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();