mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-08 02:34:09 +02:00
Rename local discovery option for clarity
It's using full relative filepaths, not just dir paths.
This commit is contained in:
parent
2cc94636cf
commit
d304fcbda7
src/libsync
@ -1620,10 +1620,10 @@ AccountPtr SyncEngine::account() const
|
||||
return _account;
|
||||
}
|
||||
|
||||
void SyncEngine::setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QByteArray> dirs)
|
||||
void SyncEngine::setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QByteArray> paths)
|
||||
{
|
||||
_localDiscoveryStyle = style;
|
||||
_localDiscoveryPaths = std::move(dirs);
|
||||
_localDiscoveryPaths = std::move(paths);
|
||||
}
|
||||
|
||||
bool SyncEngine::shouldDiscoverLocally(const QByteArray &path) const
|
||||
|
@ -103,7 +103,7 @@ public:
|
||||
/**
|
||||
* 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
|
||||
* be read from the db and scanned on the filesystem.
|
||||
*
|
||||
@ -111,7 +111,7 @@ public:
|
||||
* revert afterwards. Use _lastLocalDiscoveryStyle to discover the last
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user