]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
[osx] Fix missing overlay icons on client startup
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 28 Apr 2016 20:43:53 +0000 (22:43 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Tue, 3 May 2016 11:01:51 +0000 (13:01 +0200)
commite58739de00bb10b0377382ded45d650bf411501b
tree74ed4b3201e4152e0977b06c6f632451a81a4450
parent7c2fdee78bf9608109e0274efce1a1f7ddb8c283
[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.
src/gui/accountstate.cpp
src/gui/accountstate.h
src/gui/folder.cpp
src/gui/folder.h
src/gui/folderman.cpp
src/gui/folderman.h
src/gui/socketapi.cpp
src/gui/socketapi.h