1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

Trim spaces when using cmd+u sheet (#2915)

This commit is contained in:
Antoine Cœur 2022-04-16 12:02:25 +08:00 committed by GitHub
parent f4bb09428b
commit bafb8d6495
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1544,6 +1544,7 @@ static void removeKeRangerRansomware()
if (returnCode == 1)
{
NSString* urlString = [self.fUrlSheetController urlString];
urlString = [urlString stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceAndNewlineCharacterSet];
dispatch_async(dispatch_get_main_queue(), ^{
[self openURL:urlString];
});