Skip to content

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

Merge pull request #38 from altic-dev/disable-command-and-write-mode

ALTICca5d0a677fd9
diff --cc Sources/Fluid/ContentView.swift
index 7e0b0203,82f68772..90ee4978
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@@ -467,9 -501,42 +469,42 @@@ struct ContentView: View
SettingsStore.shared.selectedModelByProvider = selectedModelByProvider
}
}
- .onChange(of: selectedProviderID) { newValue in
+ .onChange(of: selectedProviderID) { _, newValue in
SettingsStore.shared.selectedProviderID = newValue
}
+ .onChange(of: isCommandModeShortcutEnabled) { newValue in
+ SettingsStore.shared.commandModeShortcutEnabled = newValue
+ hotkeyManager?.updateCommandModeShortcutEnabled(newValue)
+
+ if !newValue {
+ isRecordingCommandModeShortcut = false
+
+ if isRecordingForCommand {
+ if asr.isRunning {
+ asr.stopWithoutTranscription()
+ }
+ isRecordingForCommand = false
+ menuBarManager.setOverlayMode(.dictation)
+ }
+ }
+ }
+ .onChange(of: isRewriteModeShortcutEnabled) { newValue in
+ SettingsStore.shared.rewriteModeShortcutEnabled = newValue
+ hotkeyManager?.updateRewriteModeShortcutEnabled(newValue)
+
+ if !newValue {
+ isRecordingRewriteShortcut = false
+
+ if isRecordingForRewrite {
+ if asr.isRunning {
+ asr.stopWithoutTranscription()
+ }
+ isRecordingForRewrite = false
+ rewriteModeService.clearState()
+ menuBarManager.setOverlayMode(.dictation)
+ }
+ }
+ }
.onReceive(NotificationCenter.default.publisher(for: NSApplication.didBecomeActiveNotification)) { _ in
let trusted = AXIsProcessTrusted()
if trusted != accessibilityEnabled {