mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Merge pull request #5379 from nextcloud/bugfix/file-details-for-all-valid-files
Fix displaying of file details button for local syncfileitem activities
This commit is contained in:
commit
306c01bfce
2 changed files with 4 additions and 3 deletions
|
@ -341,11 +341,11 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
|
|||
case DisplayActions:
|
||||
return _displayActions;
|
||||
case ShowFileDetailsRole:
|
||||
return !data(index, PathRole).toString().isEmpty() &&
|
||||
return _displayActions &&
|
||||
a._objectType == QStringLiteral("files") &&
|
||||
_displayActions &&
|
||||
a._fileAction != "file_deleted" &&
|
||||
a._syncFileItemStatus != SyncFileItem::FileIgnored;
|
||||
a._syncFileItemStatus != SyncFileItem::FileIgnored &&
|
||||
!data(index, OpenablePathRole).toString().isEmpty();
|
||||
case DismissableRole:
|
||||
// Do not allow dismissal of things requiring user input regarding syncing
|
||||
return !a._links.isEmpty() &&
|
||||
|
|
|
@ -658,6 +658,7 @@ void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr
|
|||
|
||||
Activity activity;
|
||||
activity._type = Activity::SyncFileItemType; //client activity
|
||||
activity._objectType = QStringLiteral("files");
|
||||
activity._syncFileItemStatus = item->_status;
|
||||
activity._dateTime = QDateTime::currentDateTime();
|
||||
activity._message = item->_originalFile;
|
||||
|
|
Loading…
Reference in a new issue