From efadd1d0123f1665e8e9f2d4a95e3339596d296c Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 8 Mar 2022 00:04:14 -0800 Subject: [PATCH] Changed add files to observe playlist settings Reverted 7f3da31b454f03322cb60b9b842427a0dcf20f2b, and reverted a past commit of some sort. Now adding URLs and opening files from the Open... option will obey the preferences for playlist adding, including modifier keys, if used. Signed-off-by: Christopher Snowhill --- Application/AppController.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/AppController.m b/Application/AppController.m index 73d90d9da..494432b13 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -73,8 +73,8 @@ void *kAppControllerContext = &kAppControllerContext; [p beginSheetModalForWindow:mainWindow completionHandler:^(NSInteger result) { if(result == NSModalResponseOK) { - [self->playlistLoader willInsertURLs:[p URLs] origin:URLOriginInternal]; - [self->playlistLoader didInsertURLs:[self->playlistLoader addURLs:[p URLs] sort:YES] origin:URLOriginInternal]; + [self->playlistLoader willInsertURLs:[p URLs] origin:URLOriginExternal]; + [self->playlistLoader didInsertURLs:[self->playlistLoader addURLs:[p URLs] sort:YES] origin:URLOriginExternal]; } else { [p close]; } @@ -111,8 +111,8 @@ void *kAppControllerContext = &kAppControllerContext; - (void)openURLPanelDidEnd:(OpenURLPanel *)panel returnCode:(int)returnCode contextInfo:(void *)contextInfo { if(returnCode == NSModalResponseOK) { - [playlistLoader willInsertURLs:@[[panel url]] origin:URLOriginInternal]; - [playlistLoader didInsertURLs:[playlistLoader addURLs:@[[panel url]] sort:NO] origin:URLOriginInternal]; + [playlistLoader willInsertURLs:@[[panel url]] origin:URLOriginExternal]; + [playlistLoader didInsertURLs:[playlistLoader addURLs:@[[panel url]] sort:NO] origin:URLOriginExternal]; } }