Add number of unread messages to tray icon toolIip

pull/1774/head
Integral 5 months ago
parent 0c222689f4
commit 01cc12fede
No known key found for this signature in database
GPG Key ID: 06313911057DD5A8
  1. 7
      src/TrayIcon.cpp

@ -129,6 +129,13 @@ TrayIcon::setUnreadCount(int count)
previousCount = count;
}
#endif
QString toolTip = QLatin1String("nheko");
if (count > 0) {
toolTip.append(tr("\n%1 unread message(s)").arg(count));
}
setToolTip(toolTip);
}
#include "moc_TrayIcon.cpp"

Loading…
Cancel
Save