[Pkg-owncloud-commits] [owncloud-client] 26/69: Windows Shell Integration: refresh the cache on UPDATE_VIEW
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Nov 7 19:41:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit a47013845033f8b0328d71340f5be02343e6e7f7
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Wed Oct 29 11:00:51 2014 +0100
Windows Shell Integration: refresh the cache on UPDATE_VIEW
Attempt to fix #2383
---
.../windows/OCShellExtensions/OCUtil/RemotePathChecker.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/shell_integration/windows/OCShellExtensions/OCUtil/RemotePathChecker.cpp b/shell_integration/windows/OCShellExtensions/OCUtil/RemotePathChecker.cpp
index b96756d..92da20e 100644
--- a/shell_integration/windows/OCShellExtensions/OCUtil/RemotePathChecker.cpp
+++ b/shell_integration/windows/OCShellExtensions/OCUtil/RemotePathChecker.cpp
@@ -123,6 +123,14 @@ void RemotePathChecker::workerThreadLoop()
SHChangeNotify(SHCNE_UPDATEITEM, SHCNF_PATH | SHCNF_FLUSHNOWAIT, responsePath.data(), NULL);
}
}
+ } else if (StringUtil::begins_with(response, wstring(L"UPDATE_VIEW"))) {
+ std::unique_lock<std::mutex> lock(_mutex);
+ // Request a status for all the items in the cache.
+ for (auto it = _cache.begin(); it != _cache.end() ; ++it ) {
+ if (!socket.SendMsg(wstring(L"RETRIEVE_FILE_STATUS:" + it->first + L'\n').data())) {
+ break;
+ }
+ }
}
if (socket.Event() == INVALID_HANDLE_VALUE) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list