Allow dropping connections from the welcome page

This is the last piece required to make sure that we can recover from broken connections, e.g., when the access token is invalid.
This commit is contained in:
Tobias Fella
2024-02-14 17:38:46 +01:00
parent 8755cd9d61
commit b02bdd22dd
3 changed files with 55 additions and 4 deletions

View File

@@ -96,6 +96,8 @@ public:
static void setTestMode(bool testMode);
Q_INVOKABLE void removeConnection(const QString &userId);
private:
explicit Controller(QObject *parent = nullptr);
@@ -109,6 +111,7 @@ private:
Quotient::AccountRegistry m_accountRegistry;
QStringList m_accountsLoading;
QMap<QString, QPointer<Quotient::Connection>> m_connectionsLoading;
QString m_endpoint;
private Q_SLOTS: