Stop using IMK's showPreferences:
This turns out to be unreliable on macOS 12.
This commit is contained in:
parent
c1bea8c382
commit
69e463958e
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue