Skip to content
Snippets Groups Projects
Commit ef32456d authored by Alexandre Lision's avatar Alexandre Lision
Browse files

chat: animate dock icon

Using NSCriticalRequest makes the icon bounce to catch user attention
Icon comes back to normal when the app takes the focus.

Change-Id: I1a2504407223944775e0eac40a228bc6e5e3435d
Tuleap: #202
parent 76d59690
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,7 @@
NSDockTile *tile = [[NSApplication sharedApplication] dockTile];
NSString* label = unreadCount ? [NSString stringWithFormat:@"%d", unreadCount]: @"";
[tile setBadgeLabel:label];
[NSApp requestUserAttention:NSCriticalRequest];
});
QObject::connect(&Media::RecordingModel::instance(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment