NotifierUI // GCD the tasks in notify().

This commit is contained in:
ShikiSuen 2022-12-28 16:17:28 +08:00
parent abe6375347
commit b439b2ce93
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import Cocoa
public class Notifier: NSWindowController { public class Notifier: NSWindowController {
public static func notify(message: String) { public static func notify(message: String) {
Self.message = message DispatchQueue.main.async { Self.message = message }
} }
static var message: String = "" { static var message: String = "" {