diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-01 06:20:44 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-01 06:20:44 +0100 |
commit | 7823aceb58b5927c3674d08f475ef37fe0a43ec7 (patch) | |
tree | 86db660f4a4432b66d94a59033258be53f615646 /src | |
parent | Downgrade self verification status logging to debug (diff) | |
download | nheko-7823aceb58b5927c3674d08f475ef37fe0a43ec7.tar.xz |
Save profile when explicitly specified
Not just when any setting is modified... fixes #1563
Diffstat (limited to 'src')
-rw-r--r-- | src/UserSettingsPage.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 3de62116..0534b556 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -147,6 +147,9 @@ UserSettings::load(std::optional<QString> profile) settings.value("disable_certificate_validation", false).toBool(); applyTheme(); + + if (profile) + setProfile(profile_); } bool @@ -748,8 +751,7 @@ UserSettings::setScreenShareHideCursor(bool state) void UserSettings::setProfile(QString profile) { - if (profile == profile_) - return; + // always set this to allow setting this when loading and it is overwritten on the cli profile_ = profile; emit profileChanged(profile_); save(); |