mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Fix issues
Signed-off-by: Danhoby <37343749+Dan4oby@users.noreply.github.com>
This commit is contained in:
parent
9d534d5a8f
commit
6e09f01714
2 changed files with 9 additions and 3 deletions
|
|
@ -1007,10 +1007,11 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
|||
receivedData.insert(it->first, it->second);
|
||||
emit APPLICATION->oauthReplyRecieved(receivedData);
|
||||
continue;
|
||||
} else if (url.scheme() == "prismlauncher" && isExternalURLImport) {
|
||||
} else if ((url.scheme() == "prismlauncher" || url.scheme() == BuildConfig.LAUNCHER_APP_BINARY_NAME)
|
||||
&& isExternalURLImport) {
|
||||
// PrismLauncher URL protocol modpack import
|
||||
// works for any prism fork
|
||||
// preferred import format: <scheme>://import?url=ENCODED
|
||||
// preferred import format: prismlauncher://import?url=ENCODED
|
||||
|
||||
const auto host = url.host().toLower();
|
||||
const auto path = url.path();
|
||||
|
|
@ -1025,7 +1026,7 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
|||
}
|
||||
}
|
||||
|
||||
// alternative import format: <scheme>://import/ENCODED
|
||||
// alternative import format: prismlauncher://import/ENCODED
|
||||
if (encodedTarget.isEmpty()) {
|
||||
|
||||
QString p = path;
|
||||
|
|
@ -1078,6 +1079,7 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
|||
continue;
|
||||
}
|
||||
|
||||
dl_url = target;
|
||||
} else {
|
||||
dl_url = url;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue