[File Association] Correctly play files on open
When opening files from external association, such as opening files, or opening folders with Cog, correctly obey the configured clear and play or enqueue and play actions, by playing the new additions. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
a03e519c61
commit
1c3717eb84
1 changed files with 2 additions and 2 deletions
|
@ -485,7 +485,7 @@ static AppController *kAppController = nil;
|
|||
NSArray *urls = @[[NSURL fileURLWithPath:filename]];
|
||||
NSDictionary *loadEntriesData = @{ @"entries": urls,
|
||||
@"sort": @(NO),
|
||||
@"origin": @(URLOriginInternal) };
|
||||
@"origin": @(URLOriginExternal) };
|
||||
[playlistController performSelectorInBackground:@selector(addURLsInBackground:) withObject:loadEntriesData];
|
||||
return YES;
|
||||
}
|
||||
|
@ -500,7 +500,7 @@ static AppController *kAppController = nil;
|
|||
|
||||
NSDictionary *loadEntriesData = @{ @"entries": urls,
|
||||
@"sort": @(YES),
|
||||
@"origin": @(URLOriginInternal) };
|
||||
@"origin": @(URLOriginExternal) };
|
||||
|
||||
[playlistController performSelectorInBackground:@selector(addURLsInBackground:) withObject:loadEntriesData];
|
||||
|
||||
|
|
Loading…
Reference in a new issue