mobile: show incorrect cloud password state

While the startup flow should make it obvious when a user is not
correctly logged into the cloud, we still do see fairly frequent
situations where a user has an incorrect password on a mobile device and
is confused about why their data isn't syncing with their PC. Now this
is clearly shown in the main menu.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2024-02-23 16:21:17 -08:00
parent fac006148f
commit 4b0fe3bc38
3 changed files with 39 additions and 3 deletions

View file

@ -58,7 +58,7 @@ class QMLManager : public QObject {
Q_PROPERTY(bool diveListProcessing MEMBER m_diveListProcessing WRITE setDiveListProcessing NOTIFY diveListProcessingChanged)
Q_PROPERTY(bool initialized MEMBER m_initialized NOTIFY initializedChanged)
Q_PROPERTY(QString syncState READ getSyncState NOTIFY syncStateChanged)
Q_PROPERTY(QString passwordState READ getPasswordState NOTIFY passwordStateChanged)
public:
QMLManager();
~QMLManager();
@ -162,6 +162,7 @@ public:
void rememberOldStatus();
QString getSyncState() const;
QString getPasswordState() const;
public slots:
void appInitialized();
@ -297,6 +298,7 @@ signals:
void redoTextChanged();
void restartDownloadSignal();
void syncStateChanged();
void passwordStateChanged();
// From upload process
void uploadFinish(bool success, const QString &text);