From a0621b2537fa63c618ad25168e1150d3928dbbd7 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 6 Jul 2022 17:04:02 -0700 Subject: [PATCH] [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 --- Application/AppController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/AppController.m b/Application/AppController.m index ca3e72e5c..fc397066c 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -492,7 +492,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; } @@ -507,7 +507,7 @@ static AppController *kAppController = nil; NSDictionary *loadEntriesData = @{ @"entries": urls, @"sort": @(YES), - @"origin": @(URLOriginInternal) }; + @"origin": @(URLOriginExternal) }; [playlistController performSelectorInBackground:@selector(addURLsInBackground:) withObject:loadEntriesData];