summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueInfoViewController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-07-30 10:29:01 +0200
committerDamiano Galassi <[email protected]>2019-07-30 10:29:01 +0200
commitc24a22e18ce1142bf370d753d76ed2fbfd4df4ab (patch)
tree6830b8f4a19f6681f4223e92f893f67370420232 /macosx/HBQueueInfoViewController.m
parent4e2d5908db8f7103d0010e7e086e1ca07142efa1 (diff)
MacGui: set the progress labels to a monospaced digit font.
Diffstat (limited to 'macosx/HBQueueInfoViewController.m')
-rw-r--r--macosx/HBQueueInfoViewController.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/macosx/HBQueueInfoViewController.m b/macosx/HBQueueInfoViewController.m
index 3b8a6e247..0521ccc04 100644
--- a/macosx/HBQueueInfoViewController.m
+++ b/macosx/HBQueueInfoViewController.m
@@ -40,6 +40,8 @@
- (void)setUpObservers
{
+ // It would be easier to just KVO the item state property,
+ // But we can't because the item is a NSProxy.
NSNotificationCenter * __weak center = NSNotificationCenter.defaultCenter;
[center addObserverForName:HBQueueDidStartItemNotification
@@ -67,6 +69,15 @@
[self updateReset];
}
}];
+
+ [center addObserverForName:HBQueueDidChangeItemNotification
+ object:nil
+ queue:NSOperationQueue.mainQueue usingBlock:^(NSNotification * _Nonnull note)
+ {
+ [self updateLabels];
+ [self updateReset];
+ }];
+
}
- (void)updateReset