From 72eda3e1d06a82a8b2e0c9341e8e20bc7e68d5ba Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 25 Mar 2025 16:44:11 -0400 Subject: [PATCH] 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. --- launcher/src/accountmanager.cpp | 1 + launcher/src/profilemanager.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/launcher/src/accountmanager.cpp b/launcher/src/accountmanager.cpp index 7138819..17d6ec2 100644 --- a/launcher/src/accountmanager.cpp +++ b/launcher/src/accountmanager.cpp @@ -61,6 +61,7 @@ Account *AccountManager::createSquareEnixAccount(const QString &username, const account->config()->setLicense(static_cast(licenseType)); account->config()->setIsFreeTrial(isFreeTrial); account->config()->setName(username); + account->config()->save(); insertAccount(account); diff --git a/launcher/src/profilemanager.cpp b/launcher/src/profilemanager.cpp index fd331fe..8d3ba82 100644 --- a/launcher/src/profilemanager.cpp +++ b/launcher/src/profilemanager.cpp @@ -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);