ctlIME // DispatchQueue showCheatSheet().

This commit is contained in:
ShikiSuen 2022-09-13 21:04:30 +08:00
parent 4db10fb9e3
commit efe4929ad2
1 changed files with 3 additions and 1 deletions

View File

@ -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?) {