Skip to content
Snippets Groups Projects
Verified Commit 7823aceb authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Save profile when explicitly specified

Not just when any setting is modified...

fixes #1563
parent 092b1236
No related branches found
No related tags found
No related merge requests found
Pipeline #5246 passed
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment