Deletable folders

This commit is contained in:
M66B
2021-12-10 11:41:20 +01:00
parent 000ac38524
commit 189255f8fe
2 changed files with 5 additions and 4 deletions

View File

@@ -353,7 +353,9 @@ public class FragmentFolder extends FragmentBase {
btnSave.setEnabled(true);
tvInboxRootHint.setVisibility(folder == null && parent == null ? View.VISIBLE : View.GONE);
deletable = (folder != null && EntityFolder.USER.equals(folder.type));
deletable = (folder != null &&
!folder.read_only &&
EntityFolder.USER.equals(folder.type));
invalidateOptionsMenu();
}