fix an issue that orcaslicer:// didn't work on Mac

This commit is contained in:
SoftFever 2024-05-24 19:42:32 +08:00
parent 1701cbc098
commit f7b605088b
2 changed files with 11 additions and 12 deletions

View file

@ -29,17 +29,16 @@
<key>ATSApplicationFontsPath</key> <key>ATSApplicationFontsPath</key>
<string>fonts/</string> <string>fonts/</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
<array> <array>
<dict> <dict>
<key>CFBundleURLName</key> <key>CFBundleURLName</key>
<string>orcasliceropen url</string> <string>OrcaSlicer Downloads</string>
<key>CFBundleURLSchemes</key> <key>CFBundleURLSchemes</key>
<array> <array>
<string>orcasliceropen</string> <string>orcaslicer</string>
<string>orcaslicer</string> </array>
</array> </dict>
</dict> </array>
</array>
<key>CFBundleDocumentTypes</key> <key>CFBundleDocumentTypes</key>
<array> <array>
<dict> <dict>

View file

@ -5903,7 +5903,7 @@ void GUI_App::MacOpenURL(const wxString& url)
m_download_file_url = download_file_url; m_download_file_url = download_file_url;
} }
} }
} else if (boost::starts_with(url, "prusasliceropen://")) } else if (boost::starts_with(url, "orcaslicer://"))
start_download(boost::nowide::narrow(url)); start_download(boost::nowide::narrow(url));
} }