Fix: "Cannot begin activity without reason string or empty reason string" (#3197)

This commit is contained in:
A Cœur 2022-06-05 07:42:32 +08:00 committed by GitHub
parent d31254df50
commit 84195254ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -778,7 +778,7 @@ static void removeKeRangerRansomware()
NSApp.servicesProvider = self;
self.fNoNapActivity = [NSProcessInfo.processInfo beginActivityWithOptions:NSActivityUserInitiatedAllowingIdleSystemSleep
reason:NSLocalizedString(@"No napping on the job!", nil)];
reason:@"No napping on the job!"];
//register for dock icon drags (has to be in applicationDidFinishLaunching: to work)
[[NSAppleEventManager sharedAppleEventManager] setEventHandler:self andSelector:@selector(handleOpenContentsEvent:replyEvent:)