Show broken encryption icon only in non-empty folders
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 2 Jun 2020 14:03:50 +0000 (16:03 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Tue, 2 Jun 2020 15:50:18 +0000 (15:50 +0000)
commit02a28325a89dec1c5d57ff0b3ee6ef3663cbd8be
tree5ba02c58445f643c4dfbd0661316497cb086cf5f
parentc800d9149eea045fe30ddff186bb2d00fae6712c
Show broken encryption icon only in non-empty folders

This should address Tobias' concerns regarding the icon being
misleading. Now we basically do the following inside an encrypted folder
parent:
 * encrypted folders get the encrypted icon;
 * non-encrypted empty folders get the regular folder icon;
 * non-encrypted non-empty folders get the broken encryption icon.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/folderstatusmodel.cpp