]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
declare state property in AccountState
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 11 Oct 2022 20:15:05 +0000 (22:15 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 28 Jun 2023 09:21:50 +0000 (11:21 +0200)
should make it more logic to find the property when needed

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/accountstate.h

index 5f7cebcfab43ef66f4434041c4acf7e8960b837a..8ca27b38c3d9c0d7b157fdae3ac695b8f1de4984 100644 (file)
@@ -47,6 +47,7 @@ class AccountState : public QObject, public QSharedData
 {
     Q_OBJECT
     Q_PROPERTY(AccountPtr account MEMBER _account)
+    Q_PROPERTY(State state READ state NOTIFY stateChanged)
 
 public:
     enum State {