Tray menu: Only show time ago (view too noisy)

Don't show date and time for now, rather as a tool tip later.

Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Michael Schuster 2020-01-19 19:12:34 +01:00
parent 8c2d77c68f
commit 03cddabfd0
No known key found for this signature in database
GPG key ID: 00819E3BF4177B28
2 changed files with 3 additions and 2 deletions

View file

@ -188,7 +188,8 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
case AccountRole:
return a._accName;
case PointInTimeRole:
return a._id == -1 ? "" : QString("%1 - %2").arg(Utility::timeAgoInWords(a._dateTime.toLocalTime()), a._dateTime.toLocalTime().toString(Qt::DefaultLocaleShortDate));
//return a._id == -1 ? "" : QString("%1 - %2").arg(Utility::timeAgoInWords(a._dateTime.toLocalTime()), a._dateTime.toLocalTime().toString(Qt::DefaultLocaleShortDate));
return a._id == -1 ? "" : Utility::timeAgoInWords(a._dateTime.toLocalTime());
case AccountConnectedRole:
return (ast && ast->isConnected());
default:

View file

@ -770,7 +770,7 @@ void UserModel::fetchCurrentActivityModel()
AccountAppList UserModel::appList() const
{
if (_users.count() >= 1) {
if (_users.count() > 0) {
return _users[_currentUserId]->appList();
} else {
return AccountAppList();