Skip to content

Commit

Permalink
Tray menu: Only show time ago (view too noisy)
Browse files Browse the repository at this point in the history
Don't show date and time for now, rather as a tool tip later.

Signed-off-by: Michael Schuster <[email protected]>
  • Loading branch information
misch7 committed Jan 19, 2020
1 parent 8c2d77c commit 03cddab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/gui/tray/ActivityListModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/gui/tray/UserModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 03cddab

Please sign in to comment.