fix: new release check ,download url is incorrect

fix #718
This commit is contained in:
YiFang Xiao 2023-06-03 17:49:37 +08:00
parent 6a0a16625d
commit d6009f0e8e

View file

@ -2965,7 +2965,7 @@ void MainWindow::latestReleaseReplyReady()
} }
downloadUrl = matchParts.captured(1); downloadUrl = matchParts.captured(1);
if(downloadUrl.startsWith("/")){ if(downloadUrl.startsWith("/")){
downloadUrl = latestReleaseReply->request().url().host() + downloadUrl; downloadUrl = latestReleaseReply->request().url().url( QUrl::RemovePath ) + downloadUrl;
} }
success = true; success = true;
} }