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>
<string>fonts/</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>orcasliceropen url</string>
<key>CFBundleURLSchemes</key>
<array>
<string>orcasliceropen</string>
<string>orcaslicer</string>
</array>
</dict>
</array>
<array>
<dict>
<key>CFBundleURLName</key>
<string>OrcaSlicer Downloads</string>
<key>CFBundleURLSchemes</key>
<array>
<string>orcaslicer</string>
</array>
</dict>
</array>
<key>CFBundleDocumentTypes</key>
<array>
<dict>

View file

@ -5903,7 +5903,7 @@ void GUI_App::MacOpenURL(const wxString& 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));
}