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
Fix ignored microphones returning after reconnect
altic-dev24bc8508acd7
diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex edf17b9b..5c8b4fed 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -1956,10 +1956,7 @@ final class SettingsStore: ObservableObject {func reconcileMicrophonePriority(with devices: [AudioDevice.Device]) {var entries = self.microphonePrioritylet preferredUID = self.preferredInputDeviceUID- let connectedUIDs = Set(devices.map(\.uid))- var suppressedUIDs = self.suppressedMicrophoneUIDs- suppressedUIDs.formIntersection(connectedUIDs)- self.suppressedMicrophoneUIDs = suppressedUIDs+ let suppressedUIDs = self.suppressedMicrophoneUIDsif entries.isEmpty,let preferredUID,diff --git a/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift b/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swiftindex c0ad8e91..94f46769 100644--- a/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift+++ b/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift@@ -1790,7 +1790,7 @@ final class HotkeyShortcutTests: XCTestCase {}@MainActor- func testRemovedConnectedMicrophoneReturnsAtSecondAfterReconnect() throws {+ func testRemovedConnectedMicrophoneStaysRemovedAfterReconnect() throws {try self.withRestoredDefaults(keys: [self.preferredInputDeviceUIDKey,self.microphonePriorityKey,@@ -1813,8 +1813,11 @@ final class HotkeyShortcutTests: XCTestCase {XCTAssertEqual(SettingsStore.shared.microphonePriority.map(\.uid), [usb.uid])SettingsStore.shared.reconcileMicrophonePriority(with: [usb])+ XCTAssertTrue(SettingsStore.shared.suppressedMicrophoneUIDs.contains(builtIn.uid))+SettingsStore.shared.reconcileMicrophonePriority(with: [builtIn, usb])- XCTAssertEqual(SettingsStore.shared.microphonePriority.map(\.uid), [usb.uid, builtIn.uid])+ XCTAssertEqual(SettingsStore.shared.microphonePriority.map(\.uid), [usb.uid])+ XCTAssertEqual(coordinator.inputDeviceForCapture(), usb)}}