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

Vfs: Ensure VfsOff works without start() being called

In tests an un-started Vfs instance is sometimes passed to SyncEngine
via SyncOptions.
This commit is contained in:
Christian Kamm 2019-02-06 14:44:05 +01:00 committed by Kevin Ottens
parent 6a977edeee
commit b06f67baf0
No known key found for this signature in database
GPG Key ID: 074BBBCB8DECC9E2

View File

@ -267,10 +267,8 @@ public:
bool isDehydratedPlaceholder(const QString &) override { return false; }
bool statTypeVirtualFile(csync_file_stat_t *, void *) override { return false; }
bool setPinState(const QString &folderPath, PinState state) override
{ return setPinStateInDb(folderPath, state); }
Optional<PinState> pinState(const QString &folderPath) override
{ return pinStateInDb(folderPath); }
bool setPinState(const QString &, PinState) override { return true; }
Optional<PinState> pinState(const QString &) override { return PinState::AlwaysLocal; }
public slots:
void fileStatusChanged(const QString &, SyncFileStatus) override {}