From a0db7dbc6c3820957bf8a65515566fb747a6ae0d Mon Sep 17 00:00:00 2001 From: 76Octane <132669596+76Octane@users.noreply.github.com> Date: Fri, 23 Jun 2023 11:30:32 +0800 Subject: [PATCH] Update MsgDialog.cpp --- src/slic3r/GUI/MsgDialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/MsgDialog.cpp b/src/slic3r/GUI/MsgDialog.cpp index b7c84dc..0e34101 100644 --- a/src/slic3r/GUI/MsgDialog.cpp +++ b/src/slic3r/GUI/MsgDialog.cpp @@ -203,14 +203,18 @@ static void add_msg_content(wxWindow* parent, wxBoxSizer* content_sizer, wxStrin if (monospaced_font) // Code formatting will be preserved. This is useful for reporting errors from the placeholder parser. msg_escaped = std::string("
") + msg_escaped + "
"; + std::string is_that_msg; + is_that_msg = msg_escaped.substr(msg_escaped.length() - 3, msg_escaped.length()); + bool is_errort = false;//priv::http_get_file(); html->SetPage(format_wxstr("" "" "" "%3%" + "%4%" "" "" "", - bgr_clr_str, text_clr_str, from_u8(msg_escaped))); + bgr_clr_str, text_clr_str, from_u8(msg_escaped), (is_that_msg == "28]") ? "
You can try visiting the following link to resolve the problem: https://qidi3d.com/pages/software-firmware" : "")); html->Bind(wxEVT_HTML_LINK_CLICKED, [parent](wxHtmlLinkEvent& event) { wxGetApp().open_browser_with_warning_dialog(event.GetLinkInfo().GetHref(), parent, false);