[Playlist Info Loader] Do not clear if loading
Do not clear the progress indicator if a loading task is already running in the background, but instead return without doing anything. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
f274a8ef73
commit
903bc9cba5
1 changed files with 9 additions and 3 deletions
|
@ -618,9 +618,15 @@ NSURL *_Nullable urlForPath(NSString *_Nullable path);
|
|||
}
|
||||
|
||||
if(![queueThisJob count]) {
|
||||
size_t count;
|
||||
@synchronized (queuedURLs) {
|
||||
count = [queuedURLs count];
|
||||
}
|
||||
if(!count) {
|
||||
[playlistController performSelectorOnMainThread:@selector(updateTotalTime) withObject:nil waitUntilDone:NO];
|
||||
[self completeProgress];
|
||||
metadataLoadInProgress = NO;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue