From a44d82fd0d7d94d176cd8107ff8d6d3d52a330fd Mon Sep 17 00:00:00 2001 From: alves Date: Mon, 19 Jan 2026 14:22:36 +0800 Subject: [PATCH] feature remove not work code. --- src/slic3r/GUI/MsgDialog.cpp | 2 +- src/slic3r/GUI/ReleaseNote.cpp | 12 ------------ src/slic3r/GUI/UpdateDialogs.cpp | 4 ++-- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/slic3r/GUI/MsgDialog.cpp b/src/slic3r/GUI/MsgDialog.cpp index 31cff49156..f16795e8fd 100644 --- a/src/slic3r/GUI/MsgDialog.cpp +++ b/src/slic3r/GUI/MsgDialog.cpp @@ -172,7 +172,7 @@ Button* MsgDialog::add_button(wxWindowID btn_id, bool set_focus /*= false*/, con btn->SetFocus(); btn_sizer->Add(btn, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(ButtonProps::ChoiceButtonGap())); btn->Bind(wxEVT_BUTTON, [this, btn_id](wxCommandEvent&) { EndModal(btn_id); }); - + btn->SetCursor(wxCURSOR_HAND); MsgButton *mb = new MsgButton; ButtonData *bd = new ButtonData; diff --git a/src/slic3r/GUI/ReleaseNote.cpp b/src/slic3r/GUI/ReleaseNote.cpp index f67f9a5d05..89df735d90 100644 --- a/src/slic3r/GUI/ReleaseNote.cpp +++ b/src/slic3r/GUI/ReleaseNote.cpp @@ -511,18 +511,6 @@ void UpdateVersionDialog::update_version_info(wxString release_note, wxString ve //bbs check whether the web display is used bool use_web_link = false; url_line = ""; - // Orca: not used in Orca Slicer - // auto split_array = splitWithStl(release_note.ToStdString(), "###"); - // if (split_array.size() >= 3) { - // for (auto i = 0; i < split_array.size(); i++) { - // std::string url = split_array[i]; - // if (std::strstr(url.c_str(), "http://") != NULL || std::strstr(url.c_str(), "https://") != NULL) { - // use_web_link = true; - // url_line = url; - // break; - // } - // } - // } if (use_web_link) { m_brand->Hide(); diff --git a/src/slic3r/GUI/UpdateDialogs.cpp b/src/slic3r/GUI/UpdateDialogs.cpp index 6f7c88151f..85d309a03b 100644 --- a/src/slic3r/GUI/UpdateDialogs.cpp +++ b/src/slic3r/GUI/UpdateDialogs.cpp @@ -154,7 +154,7 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector &updates, bool force_ m_butto_ok->SetFont(Label::Body_12); m_butto_ok->SetSize(wxSize(FromDIP(58), FromDIP(24))); m_butto_ok->SetMinSize(wxSize(FromDIP(58), FromDIP(24))); - + m_butto_ok->SetCursor(wxCURSOR_HAND); auto m_button_cancel = new Button(this, _L("Cancel")); m_button_cancel->SetBackgroundColor(*wxWHITE); @@ -162,7 +162,7 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector &updates, bool force_ m_button_cancel->SetFont(Label::Body_12); m_button_cancel->SetSize(wxSize(FromDIP(58), FromDIP(24))); m_button_cancel->SetMinSize(wxSize(FromDIP(58), FromDIP(24))); - + m_button_cancel->SetCursor(wxCURSOR_HAND); sizer_button->Add(m_butto_ok, 0, wxALL, 5); sizer_button->Add(m_button_cancel, 0, wxALL, 5);