Skip to content

Commit

Permalink
Convert directly from QUrl to NSURL
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and Camila (Rebase PR Action) committed Jul 24, 2023
1 parent 2248069 commit 0eec4ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/updater/sparkleupdater_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ - (void)userDidCancelDownload:(SUUpdater *)updater

void SparkleUpdater::setUpdateUrl(const QUrl &url)
{
NSURL* nsurl = [NSURL URLWithString:url.toString().toNSString()];
[_interface->updater setFeedURL: nsurl];
[_interface->updater setFeedURL:url.toNSURL()];
}

bool SparkleUpdater::autoUpdaterAllowed()
Expand Down

0 comments on commit 0eec4ab

Please sign in to comment.