Fix player window on Mac

This commit is contained in:
Arkadiusz Fal 2022-03-27 13:42:38 +02:00
parent 1912c8b845
commit 3467b7205c

View File

@ -33,7 +33,11 @@ enum Windows: String, CaseIterable {
func open() {
switch self {
case .player:
if let window = Self.playerWindow {
window.makeKeyAndOrderFront(self)
} else {
NSWorkspace.shared.open(URL(string: "yattee://\(location)")!)
}
case .main:
Self.main.focus()
}