Fix some properties

Properties with READ and WRITE need to NOTIFY
This commit is contained in:
Tobias Fella
2024-02-19 20:19:35 +01:00
parent fc6ea0b779
commit 36543d0872
2 changed files with 7 additions and 2 deletions

View File

@@ -92,12 +92,12 @@ class RoomManager : public QObject, public UriResolverBase
/**
* @brief The room ID of the last space entered.
*/
Q_PROPERTY(QString lastSpaceId READ lastSpaceId WRITE setLastSpaceId CONSTANT)
Q_PROPERTY(QString lastSpaceId READ lastSpaceId WRITE setLastSpaceId NOTIFY directChatsActiveChanged)
/**
* @brief Whether the last SpaceDrawer category selected was direct chats.
*/
Q_PROPERTY(bool directChatsActive READ directChatsActive WRITE setDirectChatsActive CONSTANT)
Q_PROPERTY(bool directChatsActive READ directChatsActive WRITE setDirectChatsActive NOTIFY directChatsActiveChanged)
/**
* @brief The ChatDocumentHandler for the open room.
@@ -334,6 +334,9 @@ Q_SIGNALS:
void connectionChanged();
void directChatsActiveChanged();
void lastSpaceIdChanged();
private:
void openRoomForActiveConnection();