Vfs: Require local discovery after disabling vfs

Without it local files aren't guaranteed to be downloaded #6936.
This commit is contained in:
Christian Kamm 2019-07-25 15:14:51 +02:00 committed by Kevin Ottens
parent 55ee3f440b
commit 38c466efbf
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -744,6 +744,9 @@ void AccountSettings::slotDisableVfsCurrentFolder()
folder->setRootPinState(PinState::AlwaysLocal);
folder->journalDb()->setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, {});
// Prevent issues with missing local files
folder->slotNextSyncFullLocalDiscovery();
FolderMan::instance()->scheduleFolder(folder);
_ui->_folderList->doItemsLayout();