Commit 08e72145 authored by Alexandre Lision's avatar Alexandre Lision

chat: add dock badge

Display unread count message on Ring dock icon

Change-Id: Ia137f66689838dddd1bbce6c8b486c6ceee77682
Tuleap: #202
parent 83180dff
......@@ -83,6 +83,13 @@
});
QObject::connect(&Media::RecordingModel::instance(),
&Media::RecordingModel::unreadMessagesCountChanged,
[=](int unreadCount) {
NSDockTile *tile = [[NSApplication sharedApplication] dockTile];
NSString* label = unreadCount ? [NSString stringWithFormat:@"%d", unreadCount]: @"";
[tile setBadgeLabel:label];
});
QObject::connect(&Media::RecordingModel::instance(),
&Media::RecordingModel::newTextMessage,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment