summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueInfoViewController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-05-08 13:11:47 +0200
committerDamiano Galassi <[email protected]>2020-05-08 13:11:47 +0200
commitd09944d49462820b9088a082eccf6dcbfc80dca0 (patch)
treeb03744e4ca61aa5079aedaabdff30b0c71fc24d1 /macosx/HBQueueInfoViewController.m
parentf189c4bc83ae4bc875fd49084fa67c891f0e0ece (diff)
MacGui: add a new queue item state to handle the case when a job is being sent back to the main window. Before we could check if it was the current item being encoded, but now with multiple encoding items we need ad additional state to handle this case correctly.
Diffstat (limited to 'macosx/HBQueueInfoViewController.m')
-rw-r--r--macosx/HBQueueInfoViewController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/HBQueueInfoViewController.m b/macosx/HBQueueInfoViewController.m
index 27b88b81b..77bd3f4bc 100644
--- a/macosx/HBQueueInfoViewController.m
+++ b/macosx/HBQueueInfoViewController.m
@@ -65,7 +65,8 @@ static void *HBQueueInfoViewControllerContext = &HBQueueInfoViewControllerContex
- (void)updateReset
{
- self.canReset = self.item && (self.item.state != HBQueueItemStateWorking && self.item.state != HBQueueItemStateReady);
+ self.canReset = self.item && (self.item.state != HBQueueItemStateWorking &&
+ self.item.state != HBQueueItemStateRescanning && self.item.state != HBQueueItemStateReady);
}
- (void)updateLabels