mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
qtox.ini shouldn't overwrite our current profile
If we're running on a given profile, reload the qtox.ini, and it has a diffeent value for the current profile, we don't overwrite our current value with whatever qtox.ini says anymore It would cause current profile confusions when multiple qTox instances where using different instances but sharing the qtox.ini
This commit is contained in:
parent
ea417d3688
commit
0baba7abe2
|
@ -215,8 +215,11 @@ void Settings::load()
|
||||||
setProxyType(s.value("proxyType", static_cast<int>(ProxyType::ptNone)).toInt());
|
setProxyType(s.value("proxyType", static_cast<int>(ProxyType::ptNone)).toInt());
|
||||||
proxyAddr = s.value("proxyAddr", "").toString();
|
proxyAddr = s.value("proxyAddr", "").toString();
|
||||||
proxyPort = s.value("proxyPort", 0).toInt();
|
proxyPort = s.value("proxyPort", 0).toInt();
|
||||||
currentProfile = s.value("currentProfile", "").toString();
|
if (currentProfile.isEmpty())
|
||||||
currentProfileId = makeProfileId(currentProfile);
|
{
|
||||||
|
currentProfile = s.value("currentProfile", "").toString();
|
||||||
|
currentProfileId = makeProfileId(currentProfile);
|
||||||
|
}
|
||||||
autoAwayTime = s.value("autoAwayTime", 10).toInt();
|
autoAwayTime = s.value("autoAwayTime", 10).toInt();
|
||||||
checkUpdates = s.value("checkUpdates", false).toBool();
|
checkUpdates = s.value("checkUpdates", false).toBool();
|
||||||
showWindow = s.value("showWindow", true).toBool();
|
showWindow = s.value("showWindow", true).toBool();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user