mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 04:07:46 +00:00
Enable insecure fallback for passwords on the Steam Deck
This commit is contained in:
parent
7211de2970
commit
67f61a2bd8
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue