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();
|
||||
|
||||
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…
Reference in a new issue