summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-10-05 10:45:50 +0200
committerDamiano Galassi <[email protected]>2016-10-05 10:45:50 +0200
commiteaa2aed959c999467bc8c28cbe7be021785c5723 (patch)
treeddb20c09f6660fbe4864adb5d0f1d9b891b4c29b /macosx/HBController.m
parent136108a7f8eaba02dd0ede50142ee3b93e27efbd (diff)
MacGui: show the queue jobs count on the main window queue toolbar icon.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r--macosx/HBController.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m
index 7dfa61709..b6c06f519 100644
--- a/macosx/HBController.m
+++ b/macosx/HBController.m
@@ -6,7 +6,7 @@
#import "HBController.h"
#import "HBFocusRingView.h"
-
+#import "HBToolbarBadgedItem.h"
#import "HBQueueController.h"
#import "HBTitleSelectionController.h"
@@ -82,7 +82,6 @@
// Bottom
IBOutlet NSTextField * fStatusField;
- IBOutlet NSTextField * fQueueStatus;
IBOutlet NSProgressIndicator * fRipIndicator;
BOOL fRipIndicatorShown;
@@ -93,6 +92,8 @@
IBOutlet NSDrawer * fPresetDrawer;
}
+@property (nonatomic, weak) IBOutlet HBToolbarBadgedItem *showQueueToolbarItem;
+
@property (unsafe_unretained) IBOutlet NSView *openTitleView;
@property (nonatomic, readwrite) BOOL scanSpecificTitle;
@property (nonatomic, readwrite) NSInteger scanSpecificTitleIdx;
@@ -901,9 +902,9 @@
#pragma mark - Queue progress
-- (void)setQueueState:(NSString *)info
+- (void)setQueueState:(NSUInteger)count
{
- fQueueStatus.stringValue = info;
+ self.showQueueToolbarItem.badgeValue = count ? @(count).stringValue : nil;
}
#define WINDOW_HEIGHT 591