Pause Icon

This commit is contained in:
relikd
2018-12-09 21:39:13 +01:00
parent 746018be62
commit 821e40a68b
4 changed files with 88 additions and 15 deletions

View File

@@ -89,11 +89,11 @@
} else {
self.barItem.title = @"";
}
// BOOL hasNet = [FeedDownload allowNetworkConnection];
BOOL hasNet = [FeedDownload allowNetworkConnection];
if (self.unreadCountTotal > 0 && [UserPrefs defaultYES:@"tintMenuBarIcon"]) {
self.barItem.image = [RSSIcon templateIcon:16 tint:[NSColor rssOrange]];
self.barItem.image = [RSSIcon systemBarIcon:16 tint:[NSColor rssOrange] noConnection:!hasNet];
} else {
self.barItem.image = [RSSIcon templateIcon:16 tint:nil];
self.barItem.image = [RSSIcon systemBarIcon:16 tint:nil noConnection:!hasNet];
self.barItem.image.template = YES;
}
});
@@ -334,6 +334,7 @@
*/
- (void)pauseUpdates:(NSMenuItem*)sender {
[FeedDownload setPaused:![FeedDownload isPaused]];
[self updateBarIcon];
}
/**