summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-11-12 17:38:45 +0100
committerDamiano Galassi <[email protected]>2019-11-12 17:58:03 +0100
commit3e2e630a1c8f5ef9c05e9cb60565f8351e2db7fa (patch)
tree0987ec5233da4448354389ce4c6ce095c3a467c2 /macosx
parent13d86705c7c7965015ed19e9dc4df2f7716db2ad (diff)
MacGui: always update queue stats after a job is done.
(cherry picked from commit d9a502fc23d7d27a51da3a982a58da835507eb1d)
Diffstat (limited to 'macosx')
-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];