Stop using IMK's showPreferences:

This turns out to be unreliable on macOS 12.
This commit is contained in:
Lukhnos Liu 2021-11-23 13:30:13 -08:00
parent c1bea8c382
commit 69e463958e
1 changed files with 1 additions and 5 deletions

View File

@ -1436,11 +1436,7 @@ public:
- (void)showPreferences:(id)sender - (void)showPreferences:(id)sender
{ {
// show the preferences panel, and also make the IME app itself the focus // show the preferences panel, and also make the IME app itself the focus
if ([IMKInputController instancesRespondToSelector:@selector(showPreferences:)]) {
[super showPreferences:sender];
} else {
[(AppDelegate *)[NSApp delegate] showPreferences]; [(AppDelegate *)[NSApp delegate] showPreferences];
}
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; [[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
} }