Skip to content

Commit

Permalink
rebase orca2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
womendoushihaoyin committed Dec 9, 2024
1 parent cd9f3dd commit 229a976
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/Downloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void Downloader::start_download(const std::string& full_url)

// Orca: Replace PS workaround for "mysterious slash" with a more dynamic approach
// Windows seems to have fixed the issue and this provides backwards compatability for those it still affects
boost::regex re(R"(^(orcaslicer|prusaslicer|bambustudio|cura):\/\/open[\/]?\?file=)", boost::regbase::icase);
boost::regex re(R"(^(Snapmaker_Orca|prusaslicer|bambustudio|cura):\/\/open[\/]?\?file=)", boost::regbase::icase);
boost::regex re2(R"(^(bambustudioopen):\/\/)", boost::regex::icase);
boost::smatch results;

Expand Down
2 changes: 1 addition & 1 deletion src/slic3r/GUI/InstanceCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ void OtherInstanceMessageHandler::handle_message(const std::string& message)

std::vector<boost::filesystem::path> paths;
std::vector<std::string> downloads;
boost::regex re(R"(^(orcaslicer|prusaslicer|cura|bambustudio):\/\/open[\/]?\?file=)", boost::regbase::icase);
boost::regex re(R"(^(Snapmaker_Orca|prusaslicer|cura|bambustudio):\/\/open[\/]?\?file=)", boost::regbase::icase);
boost::regex re2(R"(^(bambustudioopen):\/\/)", boost::regex::icase);
boost::smatch results;

Expand Down
8 changes: 0 additions & 8 deletions src/slic3r/GUI/WebSMUserLoginDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ void SMUserLogin::OnNavigationRequest(wxWebViewEvent &evt)
wxGetApp().sm_get_userinfo()->set_user_icon_url(data["icon"].get<std::string>());
}
}

wxLaunchDefaultBrowser(m_home_url);
this->Hide();
});
}
})
Expand All @@ -207,11 +204,6 @@ void SMUserLogin::OnNavigationRequest(wxWebViewEvent &evt)
});
this->RunScript("document.cookie = '';");
// load_url(m_home_url);
} else {
if (tmpUrl.find("/logout") != std::string::npos) {
this->Hide();
wxLaunchDefaultBrowser(m_home_url);
}
}
UpdateState();
}
Expand Down

0 comments on commit 229a976

Please sign in to comment.