Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
bug fixes
altic-dev1b77264a6c28
diff --git a/Sources/Fluid/Services/GlobalHotkeyManager.swift b/Sources/Fluid/Services/GlobalHotkeyManager.swiftindex 739e6b85..91e00a5c 100644--- a/Sources/Fluid/Services/GlobalHotkeyManager.swift+++ b/Sources/Fluid/Services/GlobalHotkeyManager.swift@@ -1,10 +1,11 @@import Foundationimport AppKit+@MainActorfinal class GlobalHotkeyManager: NSObject{- private var eventTap: CFMachPort?- private var runLoopSource: CFRunLoopSource?+ nonisolated(unsafe) private var eventTap: CFMachPort?+ nonisolated(unsafe) private var runLoopSource: CFRunLoopSource?private let asrService: ASRServiceprivate var shortcut: HotkeyShortcutprivate var commandModeShortcut: HotkeyShortcut@@ -115,9 +116,9 @@ final class GlobalHotkeyManager: NSObject}if attempt < maxRetryAttempts {- DebugLogger.shared.warning("Attempt \(attempt) failed, retrying in \(retryDelay) seconds...", source: "GlobalHotkeyManager")+ DebugLogger.shared.warning("Attempt \(attempt) failed, retrying in \(self.retryDelay) seconds...", source: "GlobalHotkeyManager")Task { [weak self] in- try? await Task.sleep(nanoseconds: UInt64(retryDelay * 1_000_000_000))+ try? await Task.sleep(nanoseconds: UInt64((self?.retryDelay ?? 0.5) * 1_000_000_000))await MainActor.run { [weak self] inself?.setupGlobalHotkeyWithRetry()}@@ -190,7 +191,7 @@ final class GlobalHotkeyManager: NSObjectreturn true}- private func cleanupEventTap() {+ nonisolated private func cleanupEventTap() {if let tap = eventTap {CGEvent.tapEnable(tap: tap, enable: false)}