diff options
author | Damiano Galassi <[email protected]> | 2019-07-29 07:34:38 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-07-29 07:34:38 +0200 |
commit | 8e2843720a9e6a87670da4e3caccfd570f66389f (patch) | |
tree | 9ed0392c6aef95b2f600d948564b030da2293d95 /macosx/HBQueueTableViewController.m | |
parent | 9446eba9eac07b6b47dc6d6e9f3c2a7331b38aa0 (diff) |
MacGui: refactor the preferences keys and autonaming methods; fix the queue when running multiple HandBrake instances; fixed a number of bugs.
Diffstat (limited to 'macosx/HBQueueTableViewController.m')
-rw-r--r-- | macosx/HBQueueTableViewController.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/HBQueueTableViewController.m b/macosx/HBQueueTableViewController.m index 8dc41ec1f..80521d165 100644 --- a/macosx/HBQueueTableViewController.m +++ b/macosx/HBQueueTableViewController.m @@ -219,7 +219,9 @@ HBQueueItem *item = self.queue.items[row]; - HBQueueItemView *view = item.state == HBQueueItemStateWorking ? [tableView makeViewWithIdentifier:@"MainWorkingCell" owner:self] : [tableView makeViewWithIdentifier:@"MainCell" owner:self]; + HBQueueItemView *view = item.state == HBQueueItemStateWorking && item == self.queue.currentItem ? + [tableView makeViewWithIdentifier:@"MainWorkingCell" owner:self] : + [tableView makeViewWithIdentifier:@"MainCell" owner:self]; view.delegate = self; view.item = item; @@ -235,7 +237,7 @@ - (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row { HBQueueItem *item = self.queue.items[row]; - return item.state == HBQueueItemStateWorking ? 58 : 22; + return item.state == HBQueueItemStateWorking && item == self.queue.currentItem ? 58 : 22; } #pragma mark NSQueueItemView delegate |