Merge pull request #437 from nextcloud/feature/150/e2e-indicator

Add indicator to e2e folders
This commit is contained in:
Roeland Jago Douma 2018-06-22 11:32:22 +02:00 committed by GitHub
commit aff749da12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {