Show notification count in tray icon.

This commit is contained in:
Black Hat
2019-07-01 18:19:00 +08:00
parent 858c5a638f
commit 3e0009a069
11 changed files with 251 additions and 26 deletions

View File

@@ -34,6 +34,12 @@ Item {
onNewMessage: if (!window.active && MSettings.showNotification) notificationsManager.postNotification(roomId, eventId, roomName, senderName, text, icon)
}
Binding {
target: trayIcon
property: "notificationCount"
value: roomListModel.notificationCount
}
SortFilterProxyModel {
id: sortedRoomListModel