From 1c3717eb8417245fd057c2a6fee8532a874ab823 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 d09326854..6c5449213 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -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];