diff --git a/macOS/Windows.swift b/macOS/Windows.swift index c9901ffc..06eb4ec9 100644 --- a/macOS/Windows.swift +++ b/macOS/Windows.swift @@ -33,7 +33,11 @@ enum Windows: String, CaseIterable { func open() { switch self { case .player: - NSWorkspace.shared.open(URL(string: "yattee://\(location)")!) + if let window = Self.playerWindow { + window.makeKeyAndOrderFront(self) + } else { + NSWorkspace.shared.open(URL(string: "yattee://\(location)")!) + } case .main: Self.main.focus() }