mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
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:
parent
8c2d77c68f
commit
03cddabfd0
2 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue