if (!enable || !folder)
return;
+ // we might need to add or remove the panel entry as cfapi brings this feature out of the box
+ FolderMan::instance()->navigationPaneHelper().scheduleUpdateCloudStorageRegistry();
+
// It is unsafe to switch on vfs while a sync is running - wait if necessary.
auto connection = std::make_shared<QMetaObject::Connection>();
auto switchVfsOn = [folder, connection, this]() {
if (msgBox->clickedButton() != acceptButton|| !folder)
return;
+ // we might need to add or remove the panel entry as cfapi brings this feature out of the box
+ FolderMan::instance()->navigationPaneHelper().scheduleUpdateCloudStorageRegistry();
+
// It is unsafe to switch off vfs while a sync is running - wait if necessary.
auto connection = std::make_shared<QMetaObject::Connection>();
auto switchVfsOff = [folder, connection, this]() {
// We currently don't distinguish between new and existing CLSIDs, if it's there we just
// save over it. We at least need to update the tile in case we are suddently using multiple accounts.
foreach (Folder *folder, _folderMan->map()) {
+ if (folder->vfs().mode() == Vfs::WindowsCfApi) {
+ continue;
+ }
if (!folder->navigationPaneClsid().isNull()) {
// If it already exists, unmark it for removal, this is a valid sync root.
entriesToRemove.removeOne(folder->navigationPaneClsid());