From efe4929ad20ae1bd5b3ee008822030dadc4da514 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Tue, 13 Sep 2022 21:04:30 +0800 Subject: [PATCH] ctlIME // DispatchQueue showCheatSheet(). --- Source/Modules/ControllerModules/ctlInputMethod_Menu.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Modules/ControllerModules/ctlInputMethod_Menu.swift b/Source/Modules/ControllerModules/ctlInputMethod_Menu.swift index 8a6aaf60..847d55fd 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_Menu.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_Menu.swift @@ -208,7 +208,9 @@ extension ctlInputMethod { @objc func showCheatSheet(_: Any?) { guard let url = Bundle.main.url(forResource: "shortcuts", withExtension: "html") else { return } - NSWorkspace.shared.openFile(url.path, withApplication: "Safari") + DispatchQueue.main.async { + NSWorkspace.shared.openFile(url.path, withApplication: "Safari") + } } @objc func showClientListMgr(_: Any?) {