diff --git a/Ample/Base.lproj/DownloadWindow.xib b/Ample/Base.lproj/DownloadWindow.xib index d7687b4..96b4dd0 100644 --- a/Ample/Base.lproj/DownloadWindow.xib +++ b/Ample/Base.lproj/DownloadWindow.xib @@ -14,60 +14,47 @@ - - - - + + + + - + - - - - - - - - - - - - Downloading %{value1}@ - - - - - + - + - + - + @@ -81,11 +68,11 @@ - + - + @@ -99,11 +86,11 @@ - + - + @@ -116,7 +103,7 @@ - + @@ -152,14 +139,22 @@ - - - + diff --git a/Ample/Base.lproj/MainMenu.xib b/Ample/Base.lproj/MainMenu.xib index c84296c..a87d311 100644 --- a/Ample/Base.lproj/MainMenu.xib +++ b/Ample/Base.lproj/MainMenu.xib @@ -31,7 +31,7 @@ - + diff --git a/Ample/DownloadWindowController.m b/Ample/DownloadWindowController.m index 9fa17fc..af82160 100644 --- a/Ample/DownloadWindowController.m +++ b/Ample/DownloadWindowController.m @@ -202,6 +202,24 @@ enum { //[_tableView setNeedsDisplay: YES]; // doesn't work... } +- (IBAction)downloadMissing:(id)sender { + + BOOL delta = NO; + for (DownloadItem *item in _items) { + NSURL *url = [item localURL]; + id task = [item task]; + if (!url && !task) { + [self downloadItem: item]; + delta = YES; + } + } + + if (delta) { + [self setActive: YES]; + [_tableView reloadData]; + } +} + - (IBAction)showInFinder:(id)sender { DownloadItem *item = [self clickedItem]; if (!item) return; @@ -217,6 +235,7 @@ enum { if (!item) return; [self downloadItem: item]; + [self setActive: YES]; [self redrawRow: [item index]]; } - (IBAction)cancel:(id)sender { @@ -300,8 +319,6 @@ enum { - (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { - if (row == 51) { NSLog(@"viewForRow 51");} - DownloadItem *item = [_items objectAtIndex: row]; DownloadTableCellView *v = [tableView makeViewWithIdentifier: @"DownloadCell" owner: self];