mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 05:07:51 -06:00
support downloading from makerworld on Mac by default. (#6867)
handle bambustudioopen on Mac by default
This commit is contained in:
parent
99d4d0957a
commit
96effc179b
5 changed files with 14 additions and 3 deletions
|
@ -145,9 +145,10 @@ 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 re2(R"(^(bambustudioopen):\/\/)", boost::regex::icase);
|
||||
boost::smatch results;
|
||||
|
||||
if (!boost::regex_search(full_url, results, re)) {
|
||||
if (!boost::regex_search(full_url, results, re) && !boost::regex_search(full_url, results, re2)) {
|
||||
BOOST_LOG_TRIVIAL(error) << "Could not start download due to wrong URL: " << full_url;
|
||||
// Orca: show error
|
||||
NotificationManager* ntf_mngr = wxGetApp().notification_manager();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue