mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-11 14:33:04 +00:00
feature remove not work code.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -154,7 +154,7 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector<Update> &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<Update> &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);
|
||||
|
||||
Reference in New Issue
Block a user