summaryrefslogtreecommitdiffstats
path: root/src/yuzu
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2024-01-13 21:19:44 +0100
committergerman77 <juangerman-13@hotmail.com>2024-01-13 21:28:29 +0100
commitbee22540a1d8a7b3ebd9ff4c244bf257b5e9f8b7 (patch)
tree0cba79e5f77d8940de057cf5eb439e5adf46c956 /src/yuzu
parentMerge pull request #12653 from liamwhite/once-more (diff)
downloadyuzu-bee22540a1d8a7b3ebd9ff4c244bf257b5e9f8b7.tar
yuzu-bee22540a1d8a7b3ebd9ff4c244bf257b5e9f8b7.tar.gz
yuzu-bee22540a1d8a7b3ebd9ff4c244bf257b5e9f8b7.tar.bz2
yuzu-bee22540a1d8a7b3ebd9ff4c244bf257b5e9f8b7.tar.lz
yuzu-bee22540a1d8a7b3ebd9ff4c244bf257b5e9f8b7.tar.xz
yuzu-bee22540a1d8a7b3ebd9ff4c244bf257b5e9f8b7.tar.zst
yuzu-bee22540a1d8a7b3ebd9ff4c244bf257b5e9f8b7.zip
Diffstat (limited to 'src/yuzu')
-rw-r--r--src/yuzu/configuration/configure_profile_manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_profile_manager.cpp b/src/yuzu/configuration/configure_profile_manager.cpp
index fa5f383d6..12a04b9a0 100644
--- a/src/yuzu/configuration/configure_profile_manager.cpp
+++ b/src/yuzu/configuration/configure_profile_manager.cpp
@@ -205,6 +205,7 @@ void ConfigureProfileManager::AddUser() {
const auto uuid = Common::UUID::MakeRandom();
profile_manager.CreateNewUser(uuid, username.toStdString());
+ profile_manager.WriteUserSaveFile();
item_model->appendRow(new QStandardItem{GetIcon(uuid), FormatUserEntryText(username, uuid)});
}
@@ -228,6 +229,7 @@ void ConfigureProfileManager::RenameUser() {
std::copy(username_std.begin(), username_std.end(), profile.username.begin());
profile_manager.SetProfileBase(*uuid, profile);
+ profile_manager.WriteUserSaveFile();
item_model->setItem(
user, 0,
@@ -256,6 +258,8 @@ void ConfigureProfileManager::DeleteUser(const Common::UUID& uuid) {
return;
}
+ profile_manager.WriteUserSaveFile();
+
item_model->removeRows(tree_view->currentIndex().row(), 1);
tree_view->clearSelection();