mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #7065 from nextcloud/backport/7062/stable-3.14
[stable-3.14] only add Encrypt context menu entry for top folder in settings dialog
This commit is contained in:
commit
dc6f3af2f5
@ -584,8 +584,9 @@ void AccountSettings::slotSubfolderContextMenuRequested(const QModelIndex& index
|
||||
|
||||
const auto isEncrypted = info->isEncrypted();
|
||||
const auto isParentEncrypted = _model->isAnyAncestorEncrypted(index);
|
||||
const auto isTopFolder = index.parent().isValid() && !index.parent().parent().isValid();
|
||||
|
||||
if (!isEncrypted && !isParentEncrypted) {
|
||||
if (!isEncrypted && !isParentEncrypted && isTopFolder) {
|
||||
ac = menu.addAction(tr("Encrypt"));
|
||||
connect(ac, &QAction::triggered, [this, info] { slotMarkSubfolderEncrypted(info); });
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user