mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Set profile to "" if it's the default for compatibility
This commit is contained in:
parent
46e15218d4
commit
777b9bf20d
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ UserSettings::load(std::optional<QString> profile)
|
||||||
cameraFrameRate_ = settings.value("user/camera_frame_rate", QString()).toString();
|
cameraFrameRate_ = settings.value("user/camera_frame_rate", QString()).toString();
|
||||||
useStunServer_ = settings.value("user/use_stun_server", false).toBool();
|
useStunServer_ = settings.value("user/use_stun_server", false).toBool();
|
||||||
|
|
||||||
if (profile)
|
if (profile) // set to "" if it's the default to maintain compatibility
|
||||||
profile_ = *profile;
|
profile_ = (*profile == "default") ? "" : *profile;
|
||||||
else
|
else
|
||||||
profile_ = settings.value("user/currentProfile", "").toString();
|
profile_ = settings.value("user/currentProfile", "").toString();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue