diff options
author | Damiano Galassi <[email protected]> | 2019-11-12 17:38:45 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-11-12 17:38:45 +0100 |
commit | d9a502fc23d7d27a51da3a982a58da835507eb1d (patch) | |
tree | 0987ec5233da4448354389ce4c6ce095c3a467c2 /macosx/HBQueue.m | |
parent | 47d84339f912bd2ef31748a31c061eb4c4b99f01 (diff) |
MacGui: always update queue stats after a job is done.
Diffstat (limited to 'macosx/HBQueue.m')
-rw-r--r-- | macosx/HBQueue.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBQueue.m b/macosx/HBQueue.m index 5046b12be..64cce2905 100644 --- a/macosx/HBQueue.m +++ b/macosx/HBQueue.m @@ -619,8 +619,6 @@ NSString * const HBQueueItemNotificationItemKey = @"HBQueueItemNotificationItemK [NSNotificationCenter.defaultCenter postNotificationName:HBQueueDidStartItemNotification object:self userInfo:@{HBQueueItemNotificationItemKey: nextItem, HBQueueItemNotificationIndexesKey: indexes}]; - [self updateStats]; - // now we can go ahead and scan the new pending queue item [self encodeItem:nextItem]; @@ -636,6 +634,8 @@ NSString * const HBQueueItemNotificationItemKey = @"HBQueueItemNotificationItemK } } + [self updateStats]; + [NSNotificationCenter.defaultCenter postNotificationName:HBQueueDidChangeStateNotification object:self]; [self.items commit]; |