Save profile when explicitly specified

Not just when any setting is modified...

fixes #1563
pull/1614/head
Nicolas Werner 1 year ago
parent 092b12361e
commit 7823aceb58
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 6
      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();

Loading…
Cancel
Save