From 93f28eeb2b1dfd765bff1bd40482222a67cec3ec Mon Sep 17 00:00:00 2001 From: "aricloverGitHub (INACTIVE)" <78001398+arichornlover@users.noreply.github.com> Date: Sat, 9 Nov 2024 13:07:20 -0600 Subject: [PATCH] Update Settings.xm --- Source/Settings.xm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Settings.xm b/Source/Settings.xm index d55714b..dfec44a 100644 --- a/Source/Settings.xm +++ b/Source/Settings.xm @@ -688,7 +688,8 @@ static const NSInteger YTLiteSection = 789; // Import mode: Handle the import of settings from a text file NSString *fileType = [pickedURL resourceValuesForKeys:@[NSURLTypeIdentifierKey] error:&error][NSURLTypeIdentifierKey]; - if (UTTypeConformsTo((__bridge CFStringRef)fileType, UTTypePlainText.identifier)) { + UTType *utType = [UTType typeWithIdentifier:fileType]; + if ([utType conformsToType:UTTypePlainText]) { NSString *fileContents = [NSString stringWithContentsOfURL:pickedURL encoding:NSUTF8StringEncoding error:nil]; NSArray *lines = [fileContents componentsSeparatedByString:@"\n"]; for (NSString *line in lines) {