summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueue.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-11-12 17:38:45 +0100
committerDamiano Galassi <[email protected]>2019-11-12 17:38:45 +0100
commitd9a502fc23d7d27a51da3a982a58da835507eb1d (patch)
tree0987ec5233da4448354389ce4c6ce095c3a467c2 /macosx/HBQueue.m
parent47d84339f912bd2ef31748a31c061eb4c4b99f01 (diff)
MacGui: always update queue stats after a job is done.
Diffstat (limited to 'macosx/HBQueue.m')
-rw-r--r--macosx/HBQueue.m4
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];