diff options
Diffstat (limited to 'macosx/HBQueueItemView.m')
-rw-r--r-- | macosx/HBQueueItemView.m | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/macosx/HBQueueItemView.m b/macosx/HBQueueItemView.m index 72e585adb..d0d1d54f4 100644 --- a/macosx/HBQueueItemView.m +++ b/macosx/HBQueueItemView.m @@ -5,7 +5,6 @@ It may be used under the terms of the GNU General Public License. */ #import "HBQueueItemView.h" -#import "HBQueueItem.h" @interface HBQueueItemView () @@ -15,7 +14,7 @@ @implementation HBQueueItemView -- (void)setItem:(HBQueueItem *)item +- (void)setItem:(id<HBQueueItem>)item { _item = item; [self reload]; @@ -32,7 +31,7 @@ - (void)HB_updateLabel { - self.textField.stringValue = _item.outputFileName; + self.textField.stringValue = _item.title; } - (void)HB_updateState @@ -61,7 +60,7 @@ label = NSLocalizedString(@"Rescanning for editing", @"HBQueueItemView -> Encode state accessibility label"); break; default: - state = [NSImage imageNamed:@"JobSmall"]; + state = _item.image; NSLocalizedString(@"Encode ready", @"HBQueueItemView -> Encode state accessibility label"); break; } @@ -79,7 +78,7 @@ darkAqua = [self.effectiveAppearance bestMatchFromAppearancesWithNames:@[NSAppearanceNameDarkAqua]] == NSAppearanceNameDarkAqua ? YES : NO; } - if (_item.state == HBQueueItemStateCompleted) + if (_item.state == HBQueueItemStateCompleted && _item.hasFileRepresentation) { [_removeButton setAction: @selector(revealQueueItem:)]; if (self.backgroundStyle == NSBackgroundStyleEmphasized) |