Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

fix: LiveVoiceControls — remove nonisolated music_play_spotify helper

Louis Raille50366ed5f303
diff --git a/NotchBuddy/Sources/App/Voice/LiveVoiceControls.swift b/NotchBuddy/Sources/App/Voice/LiveVoiceControls.swift
index e976fc0d..9a47a686 100644
--- a/NotchBuddy/Sources/App/Voice/LiveVoiceControls.swift
+++ b/NotchBuddy/Sources/App/Voice/LiveVoiceControls.swift
@@ -55,13 +55,12 @@ final class LiveMusicControl: MusicControlling, @unchecked Sendable {
if isMusicRunning { MusicController.shared.play() }
}
@MainActor func launchSpotify() async {
- guard !isSpotifyRunning else { music_play_spotify(); return }
+ guard !isSpotifyRunning else { SpotifyController.shared.play(); return }
let url = URL(fileURLWithPath: "/Applications/Spotify.app")
NSWorkspace.shared.open(url)
try? await Task.sleep(nanoseconds: 1_500_000_000)
if isSpotifyRunning { SpotifyController.shared.play() }
}
- private func music_play_spotify() { SpotifyController.shared.play() }
}
// MARK: - LivePillControl