mirror of
https://github.com/keycastr/keycastr.git
synced 2026-05-15 06:06:06 -06:00
Show KeyCastr as inactive if we fail to install the event tap
This commit is contained in:
parent
5d8b99d0f1
commit
87484b9101
1 changed files with 2 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue