mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
If there's no description just say nothing
Otherwise we get lots of "No description available" lines in the activity list which is basically noise. Also trains the user to ignore the secondary line. Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
f451e1d2d5
commit
3171cb2720
1 changed files with 0 additions and 3 deletions
|
@ -202,9 +202,6 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
|
|||
case ActionTextColorRole:
|
||||
return a._id == -1 ? QLatin1String("#808080") : QLatin1String("#222"); // FIXME: This is a temporary workaround for _showMoreActivitiesAvailableEntry
|
||||
case MessageRole:
|
||||
if (a._message.isEmpty()) {
|
||||
return QString("No description available.");
|
||||
}
|
||||
return a._message;
|
||||
case LinkRole: {
|
||||
if (a._link.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue