AppDelegate // DispatchQueue the userdata loading when finish launching.

This commit is contained in:
ShikiSuen 2022-05-15 18:23:55 +08:00
parent 5f078d7c40
commit f11063fbb0
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, ctlNonModalAlertWindowDelega
}
func applicationDidFinishLaunching(_: Notification) {
IME.initLangModels(userOnly: false)
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()) {
IME.initLangModels(userOnly: false)
}
fsStreamHelper.delegate = self
_ = fsStreamHelper.start()