From 68b92429fac70de649af977f7462c16f803d3113 Mon Sep 17 00:00:00 2001 From: redstrate Date: Tue, 9 Nov 2021 13:26:59 -0500 Subject: [PATCH] Set default profile name on first launch, write uuid without braces --- src/xivlauncher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xivlauncher.cpp b/src/xivlauncher.cpp index 7822ef4..64368e5 100755 --- a/src/xivlauncher.cpp +++ b/src/xivlauncher.cpp @@ -122,7 +122,7 @@ void LauncherWindow::readInitialInformation() { // create the Default profile if it doesnt exist if(profiles.empty()) - profiles.append(QUuid::createUuid().toString()); + profiles.append(QUuid::createUuid().toString(QUuid::StringFormat::WithoutBraces)); profileSettings.resize(profiles.size()); @@ -132,7 +132,7 @@ void LauncherWindow::readInitialInformation() { settings.beginGroup(uuid); - profile.name = settings.value("name").toString(); + profile.name = settings.value("name", "Default").toString(); profile.wineVersion = settings.value("wineVersion", 0).toInt(); #if defined(Q_OS_MAC) @@ -398,7 +398,7 @@ void LauncherWindow::saveSettings() { for(int i = 0; i < profileSettings.size(); i++) { const auto& profile = profileSettings[i]; - settings.beginGroup(profile.uuid.toString()); + settings.beginGroup(profile.uuid.toString(QUuid::StringFormat::WithoutBraces)); settings.setValue("name", profile.name); settings.setValue("index", i);