fix: hiding window should be on main thread

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-04-09 03:23:55 +09:00
1 parent bd92828d42
commit 767f90029e
1 file changed
+3 -1
+3 -1
View File
@@ -66,7 +66,9 @@ class App: NSApplication, NSApplicationDelegate {
func hideUi() {
debugPrint("hideUi")
thumbnailsPanel!.orderOut(nil)
DispatchQueue.main.async {
self.thumbnailsPanel!.orderOut(nil)
}
appIsBeingUsed = false
isFirstSummon = true
}