download window - show missing ROMs in red.

This commit is contained in:
Kelvin Sherlock 2020-09-12 18:01:32 -04:00
parent d8f0794679
commit c6bd70f9ef
1 changed files with 10 additions and 2 deletions

View File

@ -322,10 +322,18 @@ enum {
DownloadItem *item = [_items objectAtIndex: row];
DownloadTableCellView *v = [tableView makeViewWithIdentifier: @"DownloadCell" owner: self];
NSTextField *tf;
tf = [v textField];
[[v textField] setObjectValue: [item name]];
NSTextField *tf = [v statusTextField];
if ([item localURL]) {
[tf setTextColor: [NSColor blackColor]];
} else {
[tf setTextColor: [NSColor redColor]];
}
tf = [v statusTextField];
[tf setObjectValue: [item statusDescription]];
if ([item error]) {
[tf setTextColor: [NSColor redColor]];