From b7aafea3eae9248e68360538d92e8b36b59b4dea Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 22 Aug 2024 18:48:29 -0400 Subject: [PATCH] Replace usage of LauncherCore::isSteamDeck with Utility::isSteamDeck This calls into the function anyway, no need to use this version of the function. --- launcher/src/account.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/launcher/src/account.cpp b/launcher/src/account.cpp index 159b264..1ee632c 100644 --- a/launcher/src/account.cpp +++ b/launcher/src/account.cpp @@ -235,7 +235,7 @@ QString Account::getConfigPath() const void Account::setKeychainValue(const QString &key, const QString &value) { - if (m_launcher.isSteamDeck()) { + if (Utility::isSteamDeck()) { auto stateConfig = KSharedConfig::openStateConfig(); stateConfig->group(QStringLiteral("Passwords")).writeEntry(m_key + QStringLiteral("-") + key, value); @@ -248,7 +248,6 @@ void Account::setKeychainValue(const QString &key, const QString &value) #else job->setKey(m_key + QStringLiteral("-") + key); #endif - job->setInsecureFallback(m_launcher.isSteamDeck()); // The Steam Deck does not have secrets provider in Game Mode job->start(); connect(job, &QKeychain::WritePasswordJob::finished, this, [job] { @@ -261,7 +260,7 @@ void Account::setKeychainValue(const QString &key, const QString &value) QCoro::Task Account::getKeychainValue(const QString &key) { - if (m_launcher.isSteamDeck()) { + if (Utility::isSteamDeck()) { co_return KSharedConfig::openStateConfig()->group(QStringLiteral("Passwords")).readEntry(m_key + QStringLiteral("-") + key); } else { auto job = new QKeychain::ReadPasswordJob(QStringLiteral("Astra"), this); @@ -270,7 +269,6 @@ QCoro::Task Account::getKeychainValue(const QString &key) #else job->setKey(m_key + QStringLiteral("-") + key); #endif - job->setInsecureFallback(m_launcher.isSteamDeck()); // The Steam Deck does not have secrets provider in Game Mode job->start(); co_await qCoro(job, &QKeychain::ReadPasswordJob::finished);