Downloader: resign first responder before downloading so the URL will update (if it's being edited).

This commit is contained in:
Kelvin Sherlock 2021-11-16 20:44:11 -05:00
parent c200672650
commit afc3ac608a
1 changed files with 7 additions and 0 deletions

View File

@ -373,6 +373,10 @@ enum {
#endif
}
-(void) defocus {
[[self window] makeFirstResponder: nil];
}
#pragma mark - IBActions
-(IBAction)cancelAll:(id)sender {
@ -390,6 +394,7 @@ enum {
- (IBAction)downloadMissing:(id)sender {
[self defocus];
BOOL delta = NO;
for (DownloadItem *item in _items) {
NSURL *url = [item localURL];
@ -452,6 +457,8 @@ enum {
DownloadItem *item = [self clickedItem];
if (!item) return;
[self defocus];
[self downloadItem: item];
[self setActive: YES];
}