Compare commits

...

1 Commits

Author SHA1 Message Date
Tobias Fella
43e5adee7e Use AccountSettingsGroup 2025-10-27 16:34:03 -04:00
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
#include "general_logging.h"
using namespace Qt::StringLiterals;
using namespace Quotient;
AccountManager::AccountManager(bool testMode, QObject *parent)
: QObject(parent)
@@ -39,7 +40,7 @@ Quotient::AccountRegistry *AccountManager::accounts()
void AccountManager::loadAccountsFromCache()
{
for (const auto &accountId : Quotient::SettingsGroup("Accounts"_L1).childGroups()) {
for (const auto &accountId : AccountSettingsGroup().childGroups()) {
Quotient::AccountSettings account{accountId};
m_accountsLoading += accountId;
Q_EMIT accountsLoadingChanged();

View File

@@ -190,7 +190,7 @@ void NeoChatConnection::setKeywordPushRuleDefault(PushRuleAction::Action default
void NeoChatConnection::logout(bool serverSideLogout)
{
SettingsGroup(u"Accounts"_s).remove(userId());
AccountSettingsGroup().remove(userId());
QKeychain::DeletePasswordJob job(qAppName());
job.setAutoDelete(true);