mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
do not display encrypt action for external folders
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
f98dee9082
commit
a292cd3903
@ -601,8 +601,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();
|
||||
const auto isExternal = info->_isExternal;
|
||||
|
||||
if (!isEncrypted && !isParentEncrypted && isTopFolder) {
|
||||
if (!isEncrypted && !isParentEncrypted && !isExternal && isTopFolder) {
|
||||
ac = menu.addAction(tr("Encrypt"));
|
||||
connect(ac, &QAction::triggered, [this, info] { slotMarkSubfolderEncrypted(info); });
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user