mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 06:45:49 +03:00
Vfs: Require local discovery after disabling vfs
Without it local files aren't guaranteed to be downloaded #6936.
This commit is contained in:
parent
55ee3f440b
commit
38c466efbf
1 changed files with 3 additions and 0 deletions
|
@ -744,6 +744,9 @@ void AccountSettings::slotDisableVfsCurrentFolder()
|
||||||
folder->setRootPinState(PinState::AlwaysLocal);
|
folder->setRootPinState(PinState::AlwaysLocal);
|
||||||
folder->journalDb()->setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, {});
|
folder->journalDb()->setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, {});
|
||||||
|
|
||||||
|
// Prevent issues with missing local files
|
||||||
|
folder->slotNextSyncFullLocalDiscovery();
|
||||||
|
|
||||||
FolderMan::instance()->scheduleFolder(folder);
|
FolderMan::instance()->scheduleFolder(folder);
|
||||||
|
|
||||||
_ui->_folderList->doItemsLayout();
|
_ui->_folderList->doItemsLayout();
|
||||||
|
|
Loading…
Reference in a new issue