summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueInfoViewController.m
diff options
context:
space:
mode:
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