1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-05-31 16:34:08 +02:00

Rename local discovery option for clarity

It's using full relative filepaths, not just dir paths.
This commit is contained in:
Christian Kamm 2018-03-28 11:04:20 +02:00 committed by Roeland Jago Douma
parent 2cc94636cf
commit d304fcbda7
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 4 additions and 4 deletions

View File

@ -1620,10 +1620,10 @@ AccountPtr SyncEngine::account() const
return _account; return _account;
} }
void SyncEngine::setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QByteArray> dirs) void SyncEngine::setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QByteArray> paths)
{ {
_localDiscoveryStyle = style; _localDiscoveryStyle = style;
_localDiscoveryPaths = std::move(dirs); _localDiscoveryPaths = std::move(paths);
} }
bool SyncEngine::shouldDiscoverLocally(const QByteArray &path) const bool SyncEngine::shouldDiscoverLocally(const QByteArray &path) const

View File

@ -103,7 +103,7 @@ public:
/** /**
* Control whether local discovery should read from filesystem or db. * Control whether local discovery should read from filesystem or db.
* *
* If style is DatabaseAndFilesystem, dirs a set of file paths relative to * If style is DatabaseAndFilesystem, paths a set of file paths relative to
* the synced folder. All the parent directories of these paths will not * the synced folder. All the parent directories of these paths will not
* be read from the db and scanned on the filesystem. * be read from the db and scanned on the filesystem.
* *
@ -111,7 +111,7 @@ public:
* revert afterwards. Use _lastLocalDiscoveryStyle to discover the last * revert afterwards. Use _lastLocalDiscoveryStyle to discover the last
* sync's style. * sync's style.
*/ */
void setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QByteArray> dirs = {}); void setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QByteArray> paths = {});
/** /**
* Returns whether the given folder-relative path should be locally discovered * Returns whether the given folder-relative path should be locally discovered