added badge on mentions
This commit is contained in:
parent
a0def6a388
commit
dd0991c316
2 changed files with 5 additions and 2 deletions
|
@ -195,8 +195,10 @@
|
|||
- (void)unreadMentions:(NSInteger)count {
|
||||
if (![mentionsViewWindow isVisible] && count > 0) {
|
||||
[timelineViewWindow setTitle:[NSString stringWithFormat:@"Twittia (@%i)", count]];
|
||||
[[[NSApplication sharedApplication] dockTile] setBadgeLabel:[NSString stringWithFormat:@"%i", count]];
|
||||
} else {
|
||||
[timelineViewWindow setTitle:[NSString stringWithFormat:@"Twittia"]];
|
||||
[[[NSApplication sharedApplication] dockTile] setBadgeLabel:nil];
|
||||
[mentionsView stringByEvaluatingJavaScriptFromString:@"twittia_instance.unread_mentions = 0;"];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,8 +13,9 @@
|
|||
<body>
|
||||
|
||||
<h1>Twittia 2.2.0</h1>
|
||||
<p>Added icon</p>
|
||||
<p>Now with OAuth</p>
|
||||
<p>Added icon.</p>
|
||||
<p>Now with OAuth.</p>
|
||||
<p>Added badge to dock icon on new mentions.</p>
|
||||
|
||||
<hr />
|
||||
|
||||
|
|
Reference in a new issue