1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00

Enable insecure fallback for passwords on the Steam Deck

This commit is contained in:
Joshua Goins 2023-08-18 22:42:24 -04:00
parent 7211de2970
commit 67f61a2bd8

View file

@ -242,6 +242,7 @@ void Account::setKeychainValue(const QString &key, const QString &value)
auto job = new QKeychain::WritePasswordJob("Astra", this); auto job = new QKeychain::WritePasswordJob("Astra", this);
job->setTextData(value); job->setTextData(value);
job->setKey(m_key + "-" + key); job->setKey(m_key + "-" + key);
job->setInsecureFallback(m_launcher.isSteamDeck()); // The Steam Deck does not have secrets provider in Game Mode
job->start(); job->start();
} }
@ -251,6 +252,7 @@ QString Account::getKeychainValue(const QString &key)
auto job = new QKeychain::ReadPasswordJob("Astra", this); auto job = new QKeychain::ReadPasswordJob("Astra", this);
job->setKey(m_key + "-" + key); job->setKey(m_key + "-" + key);
job->setInsecureFallback(m_launcher.isSteamDeck());
job->start(); job->start();
QString value; QString value;