mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Save profile when explicitly specified
Not just when any setting is modified... fixes #1563
This commit is contained in:
parent
092b12361e
commit
7823aceb58
1 changed files with 4 additions and 2 deletions
|
@ -147,6 +147,9 @@ UserSettings::load(std::optional<QString> profile)
|
||||||
settings.value("disable_certificate_validation", false).toBool();
|
settings.value("disable_certificate_validation", false).toBool();
|
||||||
|
|
||||||
applyTheme();
|
applyTheme();
|
||||||
|
|
||||||
|
if (profile)
|
||||||
|
setProfile(profile_);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
@ -748,8 +751,7 @@ UserSettings::setScreenShareHideCursor(bool state)
|
||||||
void
|
void
|
||||||
UserSettings::setProfile(QString profile)
|
UserSettings::setProfile(QString profile)
|
||||||
{
|
{
|
||||||
if (profile == profile_)
|
// always set this to allow setting this when loading and it is overwritten on the cli
|
||||||
return;
|
|
||||||
profile_ = profile;
|
profile_ = profile;
|
||||||
emit profileChanged(profile_);
|
emit profileChanged(profile_);
|
||||||
save();
|
save();
|
||||||
|
|
Loading…
Reference in a new issue