1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-26 06:07:45 +00:00

Make sure to use insecure fallback when reading keychain values

(cherry picked from commit 6278dc2a96)
This commit is contained in:
Joshua Goins 2024-08-04 22:50:19 -04:00
parent 785d9fe451
commit 942ed1fc59

View file

@ -316,6 +316,7 @@ QCoro::Task<QString> Account::getKeychainValue(const QString &key)
#else #else
job->setKey(m_key + QStringLiteral("-") + key); job->setKey(m_key + QStringLiteral("-") + key);
#endif #endif
job->setInsecureFallback(m_launcher.isSteamDeck()); // The Steam Deck does not have secrets provider in Game Mode
job->start(); job->start();
co_await qCoro(job, &QKeychain::ReadPasswordJob::finished); co_await qCoro(job, &QKeychain::ReadPasswordJob::finished);