mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Merge pull request #437 from nextcloud/feature/150/e2e-indicator
Add indicator to e2e folders
This commit is contained in:
commit
aff749da12
1 changed files with 3 additions and 0 deletions
|
@ -158,6 +158,9 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const
|
|||
case Qt::CheckStateRole:
|
||||
return x._checked;
|
||||
case Qt::DecorationRole:
|
||||
if (_accountState->account()->e2e()->isFolderEncrypted(x._path)) {
|
||||
return QIcon(QLatin1String(":/client/resources/lock-https.png"));
|
||||
}
|
||||
return QFileIconProvider().icon(x._isExternal ? QFileIconProvider::Network : QFileIconProvider::Folder);
|
||||
case Qt::ForegroundRole:
|
||||
if (x._isUndecided) {
|
||||
|
|
Loading…
Reference in a new issue