Show KeyCastr as inactive if we fail to install the event tap

This commit is contained in:
Andrew Kitchen 2025-07-21 13:19:45 -07:00
parent 5d8b99d0f1
commit 87484b9101

View file

@ -139,12 +139,13 @@ static NSInteger kKCPrefDisplayIconInDock = 0x02;
[NSApp activateIgnoringOtherApps:YES];
if (![self installTap]) {
[self setIsCapturing:NO];
return;
}
[self setIsCapturing:YES];
// Show the preferences window if desired
if ([[NSUserDefaults standardUserDefaults] boolForKey:kKCPrefVisibleAtLaunch]) {
[preferencesWindow center];
[preferencesWindow makeKeyAndOrderFront:self];