mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Register askUserForMneominc in property system
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
31876926ac
commit
3b6064390c
2 changed files with 3 additions and 0 deletions
|
@ -974,6 +974,7 @@ bool Account::askUserForMnemonic() const
|
|||
void Account::setAskUserForMnemonic(const bool ask)
|
||||
{
|
||||
_e2eAskUserForMnemonic = ask;
|
||||
emit askUserForMnemonicChanged();
|
||||
}
|
||||
|
||||
} // namespace OCC
|
||||
|
|
|
@ -86,6 +86,7 @@ class OWNCLOUDSYNC_EXPORT Account : public QObject
|
|||
Q_PROPERTY(QString prettyName READ prettyName NOTIFY prettyNameChanged)
|
||||
Q_PROPERTY(QUrl url MEMBER _url)
|
||||
Q_PROPERTY(bool e2eEncryptionKeysGenerationAllowed MEMBER _e2eEncryptionKeysGenerationAllowed)
|
||||
Q_PROPERTY(bool askUserForMnemonic READ askUserForMnemonic WRITE setAskUserForMnemonic NOTIFY askUserForMnemonicChanged)
|
||||
|
||||
public:
|
||||
static AccountPtr create();
|
||||
|
@ -343,6 +344,7 @@ signals:
|
|||
void accountChangedAvatar();
|
||||
void accountChangedDisplayName();
|
||||
void prettyNameChanged();
|
||||
void askUserForMnemonicChanged();
|
||||
|
||||
/// Used in RemoteWipe
|
||||
void appPasswordRetrieved(QString);
|
||||
|
|
Loading…
Reference in a new issue