diff options
author | alex-z <blackslayer4@gmail.com> | 2021-12-16 19:23:03 +0300 |
---|---|---|
committer | alex-z <blackslayer4@gmail.com> | 2022-01-05 11:01:13 +0300 |
commit | 62b0a9b9f17d6d531f9bd005de6a87c92f7ff8e1 (patch) | |
tree | 217c4c9d2606e647ce556c290e9044fa29b4cb14 /src/gui/accountstate.h | |
parent | d790bafcadb458360552366e952be99472877cef (diff) |
Try to sign-in after being signed-out due to SslHandshakeFailedError
Signed-off-by: alex-z <blackslayer4@gmail.com>
Diffstat (limited to 'src/gui/accountstate.h')
-rw-r--r-- | src/gui/accountstate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/accountstate.h b/src/gui/accountstate.h index 7946e2f96..e2b0a927d 100644 --- a/src/gui/accountstate.h +++ b/src/gui/accountstate.h @@ -171,6 +171,10 @@ public: */ void setDesktopNotificationsAllowed(bool isAllowed); + ConnectionStatus lastConnectionStatus() const; + + void trySignIn(); + public slots: /// Triggers a ping to the server to update state and /// connection status and errors. @@ -205,6 +209,7 @@ private: AccountPtr _account; State _state; ConnectionStatus _connectionStatus; + ConnectionStatus _lastConnectionValidatorStatus = ConnectionStatus::Undefined; QStringList _connectionErrors; bool _waitingForNewCredentials; QDateTime _timeOfLastETagCheck; |