Skip to content

Commit

Permalink
fix an issue that orcaslicer:// didn't work on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed May 24, 2024
1 parent 1701cbc commit f7b6050
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions cmake/modules/MacOSXBundleInfo.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/slic3r/GUI/GUI_App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit f7b6050

Please sign in to comment.