mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -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
|
@ -502,6 +502,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 re2(R"(^(bambustudioopen):\/\/)", boost::regex::icase);
|
||||
boost::smatch results;
|
||||
|
||||
// Skip the first argument, it is the path to the slicer executable.
|
||||
|
@ -510,7 +511,7 @@ void OtherInstanceMessageHandler::handle_message(const std::string& message)
|
|||
boost::filesystem::path p = MessageHandlerInternal::get_path(*it);
|
||||
if (! p.string().empty())
|
||||
paths.emplace_back(p);
|
||||
else if (boost::regex_search(*it, results, re))
|
||||
else if (boost::regex_search(*it, results, re) || boost::regex_search(*it, results, re2))
|
||||
downloads.emplace_back(*it);
|
||||
}
|
||||
if (! paths.empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue