mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix settings groups not being terminated properly on logout
fixes #1094
This commit is contained in:
parent
4ec92e0244
commit
81d4285580
1 changed files with 4 additions and 0 deletions
|
@ -297,6 +297,10 @@ ChatPage::deleteConfigs()
|
||||||
settings->beginGroup(QStringLiteral("auth"));
|
settings->beginGroup(QStringLiteral("auth"));
|
||||||
settings->remove(QLatin1String(""));
|
settings->remove(QLatin1String(""));
|
||||||
settings->endGroup(); // auth
|
settings->endGroup(); // auth
|
||||||
|
if (UserSettings::instance()->profile() != QLatin1String("")) {
|
||||||
|
settings->endGroup(); // profilename
|
||||||
|
settings->endGroup(); // profile
|
||||||
|
}
|
||||||
|
|
||||||
http::client()->shutdown();
|
http::client()->shutdown();
|
||||||
cache::deleteData();
|
cache::deleteData();
|
||||||
|
|
Loading…
Reference in a new issue