Repo // Async certain NSAlert window when necessary.
This commit is contained in:
parent
8f7d5a8a2a
commit
45ef33c645
|
@ -138,12 +138,14 @@ public enum IME {
|
|||
),
|
||||
mgrLangModel.dataFolderPath(isDefaultFolder: false)
|
||||
)
|
||||
let alert = NSAlert()
|
||||
alert.messageText = NSLocalizedString("Unable to create the user phrase file.", comment: "")
|
||||
alert.informativeText = content
|
||||
alert.addButton(withTitle: NSLocalizedString("OK", comment: ""))
|
||||
alert.runModal()
|
||||
NSApp.setActivationPolicy(.accessory)
|
||||
DispatchQueue.main.async {
|
||||
let alert = NSAlert()
|
||||
alert.messageText = NSLocalizedString("Unable to create the user phrase file.", comment: "")
|
||||
alert.informativeText = content
|
||||
alert.addButton(withTitle: NSLocalizedString("OK", comment: ""))
|
||||
alert.runModal()
|
||||
NSApp.setActivationPolicy(.accessory)
|
||||
}
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue