bool folderPaused = _model->data(index, FolderStatusDelegate::FolderSyncPaused).toBool();
bool folderConnected = _model->data(index, FolderStatusDelegate::FolderAccountConnected).toBool();
auto folderMan = FolderMan::instance();
+ QPointer<Folder> folder = folderMan->folder(alias);
+ if (!folder)
+ return;
auto *menu = new QMenu(tv);
ac = menu->addAction(tr("Edit Ignored Files"));
connect(ac, &QAction::triggered, this, &AccountSettings::slotEditCurrentIgnoredFiles);
- if (!_ui->_folderList->isExpanded(index)) {
+ if (!_ui->_folderList->isExpanded(index) && !folder->useVirtualFiles()) {
ac = menu->addAction(tr("Choose what to sync"));
ac->setEnabled(folderConnected);
connect(ac, &QAction::triggered, this, &AccountSettings::doExpand);
auto info = infoForIndex(parent);
if (!info)
return 0;
+ if (info->_folder && info->_folder->useVirtualFiles())
+ return 0;
if (info->hasLabel())
return 1;
return info->_subs.count();
if (!info)
return false;
+ if (info->_folder && info->_folder->useVirtualFiles())
+ return false;
+
if (!info->_fetched)
return true;
// Keep showing the error to the user, it will be hidden when the account reconnects
return false;
}
+ if (info->_folder && info->_folder->useVirtualFiles()) {
+ // Selective sync is hidden in that case
+ return false;
+ }
return true;
}