From 69e463958e1437f11ca7f124267e69a02f4e77ee Mon Sep 17 00:00:00 2001 From: Lukhnos Liu Date: Tue, 23 Nov 2021 13:30:13 -0800 Subject: [PATCH] Stop using IMK's showPreferences: This turns out to be unreliable on macOS 12. --- Source/InputMethodController.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index 9dec8a06..d081ad1c 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -1436,11 +1436,7 @@ public: - (void)showPreferences:(id)sender { // 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]; }