File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,16 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
335
335
OwncloudWizard::askExperimentalVirtualFilesFeature ([folder, this ](bool enable) {
336
336
if (enable && folder)
337
337
folder->setUseVirtualFiles (enable);
338
+
339
+ // Also wipe selective sync settings
340
+ bool ok = false ;
341
+ auto oldBlacklist = folder->journalDb ()->getSelectiveSyncList (SyncJournalDb::SelectiveSyncBlackList, &ok);
342
+ folder->journalDb ()->setSelectiveSyncList (SyncJournalDb::SelectiveSyncBlackList, {});
343
+ for (const auto &entry : oldBlacklist) {
344
+ folder->journalDb ()->avoidReadFromDbOnNextSync (entry);
345
+ }
346
+ FolderMan::instance ()->scheduleFolder (folder);
347
+
338
348
// Make sure the size is recomputed as the virtual file indicator changes
339
349
ui->_folderList ->doItemsLayout ();
340
350
});
You can’t perform that action at this time.
0 commit comments