Remove Controller::accountCount in favor of AccountRegistry::accountCount

This commit is contained in:
Tobias Fella
2023-09-02 23:32:33 +02:00
parent 3790955c56
commit b9d173d0b5
5 changed files with 5 additions and 21 deletions

View File

@@ -41,11 +41,6 @@ class Controller : public QObject
{
Q_OBJECT
/**
* @brief The number of logged in accounts.
*/
Q_PROPERTY(int accountCount READ accountCount NOTIFY accountCountChanged)
/**
* @brief The current connection for the rest of NeoChat to use.
*/
@@ -96,8 +91,6 @@ public:
static Controller &instance();
[[nodiscard]] int accountCount() const;
void setActiveConnection(NeoChatConnection *connection);
[[nodiscard]] NeoChatConnection *activeConnection() const;
@@ -215,7 +208,6 @@ Q_SIGNALS:
void syncDone();
void connectionAdded(NeoChatConnection *connection);
void connectionDropped(NeoChatConnection *connection);
void accountCountChanged();
void initiated();
void notificationClicked(const QString &_t1, const QString &_t2);
void quitOnLastWindowClosedChanged();