mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix bug on logout of non-default profile
This commit is contained in:
parent
e0207ff337
commit
eae09f8f14
1 changed files with 5 additions and 7 deletions
|
@ -448,15 +448,13 @@ void
|
||||||
ChatPage::deleteConfigs()
|
ChatPage::deleteConfigs()
|
||||||
{
|
{
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
|
|
||||||
|
QString profilePrefix = (UserSettings::instance()->profile() == "default" ? "" : QString("profile/%1").arg(UserSettings::instance()->profile()));
|
||||||
|
settings.beginGroup(profilePrefix);
|
||||||
settings.beginGroup("auth");
|
settings.beginGroup("auth");
|
||||||
settings.remove("");
|
settings.remove("");
|
||||||
settings.endGroup();
|
settings.endGroup(); // auth
|
||||||
settings.beginGroup("client");
|
settings.endGroup(); // profilePrefix
|
||||||
settings.remove("");
|
|
||||||
settings.endGroup();
|
|
||||||
settings.beginGroup("notifications");
|
|
||||||
settings.remove("");
|
|
||||||
settings.endGroup();
|
|
||||||
|
|
||||||
http::client()->shutdown();
|
http::client()->shutdown();
|
||||||
cache::deleteData();
|
cache::deleteData();
|
||||||
|
|
Loading…
Reference in a new issue