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

Bug fix related to if endif condition duplication ; proper update when Filler words are toggled - bug fix after arch change

altic-devc7d971236bac
diff --git a/Sources/Fluid/Networking/ModelDownloader.swift b/Sources/Fluid/Networking/ModelDownloader.swift
index 1bf3d622..a454c9c3 100644
--- a/Sources/Fluid/Networking/ModelDownloader.swift
+++ b/Sources/Fluid/Networking/ModelDownloader.swift
@@ -1,8 +1,6 @@
import Foundation
-import Foundation
import CoreML
#if arch(arm64)
-#if arch(arm64)
import FluidAudio
#endif
diff --git a/Sources/Fluid/UI/AISettingsView.swift b/Sources/Fluid/UI/AISettingsView.swift
index 6e21b252..2c1e43fb 100644
--- a/Sources/Fluid/UI/AISettingsView.swift
+++ b/Sources/Fluid/UI/AISettingsView.swift
@@ -71,6 +71,9 @@ struct AISettingsView: View {
@State private var showKeychainPermissionAlert: Bool = false
@State private var keychainPermissionMessage: String = ""
+ // Filler Words State - local state to ensure UI reactivity
+ @State private var removeFillerWordsEnabled: Bool = SettingsStore.shared.removeFillerWordsEnabled
+
var body: some View {
ScrollView(.vertical, showsIndicators: false) {
VStack(alignment: .leading, spacing: 14) {
@@ -317,15 +320,15 @@ struct AISettingsView: View {
.foregroundStyle(.secondary)
}
Spacer()
- Toggle("", isOn: Binding(
- get: { SettingsStore.shared.removeFillerWordsEnabled },
- set: { SettingsStore.shared.removeFillerWordsEnabled = $0 }
- ))
- .toggleStyle(.switch)
- .labelsHidden()
+ Toggle("", isOn: $removeFillerWordsEnabled)
+ .toggleStyle(.switch)
+ .labelsHidden()
+ .onChange(of: removeFillerWordsEnabled) { _, newValue in
+ SettingsStore.shared.removeFillerWordsEnabled = newValue
+ }
}
- if SettingsStore.shared.removeFillerWordsEnabled {
+ if removeFillerWordsEnabled {
FillerWordsEditor()
}
}