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:
parent
6b60e22dae
commit
72eda3e1d0
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue