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

Fix missing dashes in reading username/password key

This commit is contained in:
redstrate 2021-11-09 13:29:44 -05:00
parent 68b92429fa
commit 5ad2bfccfc

View file

@ -316,14 +316,14 @@ LauncherWindow::LauncherWindow(QWidget* parent) :
if(currentProfile().rememberUsername) { if(currentProfile().rememberUsername) {
auto job = new QKeychain::WritePasswordJob("LauncherWindow"); auto job = new QKeychain::WritePasswordJob("LauncherWindow");
job->setTextData(usernameEdit->text()); job->setTextData(usernameEdit->text());
job->setKey(currentProfile().name + "username"); job->setKey(currentProfile().name + "-username");
job->start(); job->start();
} }
if(currentProfile().rememberPassword) { if(currentProfile().rememberPassword) {
auto job = new QKeychain::WritePasswordJob("LauncherWindow"); auto job = new QKeychain::WritePasswordJob("LauncherWindow");
job->setTextData(passwordEdit->text()); job->setTextData(passwordEdit->text());
job->setKey(currentProfile().name + "password"); job->setKey(currentProfile().name + "-password");
job->start(); job->start();
} }