mirror of
https://github.com/ksherlock/ample.git
synced 2025-02-20 16:29:07 +00:00
Downloader: resign first responder before downloading so the URL will update (if it's being edited).
This commit is contained in:
parent
c200672650
commit
afc3ac608a
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user