1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00

Save profiles & accounts when you create them

Just an oversight when I redid this system, we need to call save() here
to ensure they're actually saved.
This commit is contained in:
Joshua Goins 2025-03-25 16:44:11 -04:00
parent 6b60e22dae
commit 72eda3e1d0
2 changed files with 2 additions and 0 deletions

View file

@ -61,6 +61,7 @@ Account *AccountManager::createSquareEnixAccount(const QString &username, const
account->config()->setLicense(static_cast<Account::GameLicense>(licenseType));
account->config()->setIsFreeTrial(isFreeTrial);
account->config()->setName(username);
account->config()->save();
insertAccount(account);

View file

@ -45,6 +45,7 @@ Profile *ProfileManager::addProfile()
{
const auto newProfile = new Profile(QUuid::createUuid().toString(), this);
newProfile->config()->setName(QStringLiteral("New Profile"));
newProfile->config()->save();
insertProfile(newProfile);