Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2016-04-28 23:43:53 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2016-05-03 14:01:51 +0300
commite58739de00bb10b0377382ded45d650bf411501b (patch)
tree74ed4b3201e4152e0977b06c6f632451a81a4450 /src/gui/accountstate.h
parent7c2fdee78bf9608109e0274efce1a1f7ddb8c283 (diff)
[osx] Fix missing overlay icons on client startup
Since the statuses are cached and that we can't invalidate the cache, sending NOP would need to be overwritten by the default OK status once the client successfully connected. But instead of remembering which files we NOPed, rather wait until we are ready to sync before sending the REGISTER_PATH message to the socket API client. It will also prevent the client from sending unnecessary RETRIEVE_FILE_STATUS requests. Also remove AccountState::canSync, since it does the same as isConnected and syncing is not an account responsibility.
Diffstat (limited to 'src/gui/accountstate.h')
-rw-r--r--src/gui/accountstate.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/accountstate.h b/src/gui/accountstate.h
index 6ba0add89..61489c30c 100644
--- a/src/gui/accountstate.h
+++ b/src/gui/accountstate.h
@@ -102,9 +102,6 @@ public:
bool isConnected() const;
bool isConnectedOrTemporarilyUnavailable() const;
- /// Returns whether sync actions are allowed to run.
- bool canSync() const;
-
/// Triggers a ping to the server to update state and
/// connection status and errors.
void checkConnectivity();
@@ -130,6 +127,7 @@ private:
signals:
void stateChanged(int state);
+ void isConnectedChanged();
protected Q_SLOTS:
void slotConnectionValidatorResult(ConnectionValidator::Status status, const QStringList& errors);