Revert "Stop using IMK's showPreferences:"

This reverts commit 69e463958e.
This commit is contained in:
Lukhnos Liu 2021-11-24 21:16:20 -08:00
parent 65b106ce88
commit 5ff3efb385
1 changed files with 5 additions and 1 deletions

View File

@ -1436,7 +1436,11 @@ 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
[(AppDelegate *)[NSApp delegate] showPreferences]; if ([IMKInputController instancesRespondToSelector:@selector(showPreferences:)]) {
[super showPreferences:sender];
} else {
[(AppDelegate *)[NSApp delegate] showPreferences];
}
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; [[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
} }