Skip to content

Commit

Permalink
Merge branch 'PrismLauncher:develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgars-Cirulis authored Nov 3, 2024
2 parents 727b45b + 4a92573 commit d889c08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions launcher/minecraft/auth/steps/MSAStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ class CustomOAuthOobReplyHandler : public QOAuthOobReplyHandler {
MSAStep::MSAStep(AccountData* data, bool silent) : AuthStep(data), m_silent(silent)
{
m_clientId = APPLICATION->getMSAClientID();
if (QCoreApplication::applicationFilePath().startsWith("/tmp/.mount_") ||
QFile::exists(FS::PathCombine(APPLICATION->root(), "portable.txt")) || !isSchemeHandlerRegistered())
if (QCoreApplication::applicationFilePath().startsWith("/tmp/.mount_") || APPLICATION->isPortable() || !isSchemeHandlerRegistered())

{
auto replyHandler = new QOAuthHttpServerReplyHandler(this);
Expand Down
2 changes: 1 addition & 1 deletion launcher/modplatform/modrinth/ModrinthAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Task::Ptr ModrinthAPI::currentVersions(const QStringList& hashes, QString hash_f
auto body_raw = body.toJson();

netJob->addNetAction(Net::ApiUpload::makeByteArray(QString(BuildConfig.MODRINTH_PROD_URL + "/version_files"), response, body_raw));

netJob->setAskRetry(false);
return netJob;
}

Expand Down

0 comments on commit d889c08

Please sign in to comment.