Remove Media Keys warning dialog, let user discover why their global hotkeys aren't working on their own if they aren't the type to complain about features that have been in since the beginning.

CQTexperiment
Christopher Snowhill 2019-06-20 21:04:19 -07:00
parent 87078bf10d
commit e0488aa31d
1 changed files with 1 additions and 9 deletions

View File

@ -33,15 +33,7 @@
keyTap = [[SPMediaKeyTap alloc] initWithDelegate:self];
if([SPMediaKeyTap usesGlobalMediaKeyTap]) {
if (![keyTap startWatchingMediaKeys]) {
NSAlert *alert = [[NSAlert alloc] init];
[alert addButtonWithTitle:@"OK"];
[alert setMessageText:@"Enable Media Key access?"];
[alert setInformativeText:@"Media Key support requires the \"Accessibility\" permission. You will need to restart the application for the change to take effect."];
[alert setAlertStyle:NSInformationalAlertStyle];
[alert runModal];
ALog(@"Media key monitoring disabled until application is restarted");
}
[keyTap startWatchingMediaKeys];
}
else
ALog(@"Media key monitoring disabled");