refactor(macos): dedupe UI, pairing, and runtime helpers

This commit is contained in:
Peter Steinberger
2026-03-02 11:32:04 +00:00
parent cd011897d0
commit cf67e374c0
92 changed files with 1769 additions and 1802 deletions

View File

@@ -14,8 +14,7 @@ final class VoiceWakeGlobalSettingsSync {
}
func start() {
guard self.task == nil else { return }
self.task = Task { [weak self] in
SimpleTaskSupport.start(task: &self.task) { [weak self] in
guard let self else { return }
while !Task.isCancelled {
do {
@@ -39,8 +38,7 @@ final class VoiceWakeGlobalSettingsSync {
}
func stop() {
self.task?.cancel()
self.task = nil
SimpleTaskSupport.stop(task: &self.task)
}
private func refreshFromGateway() async {