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
Force onboarding for all users this release
altic-devf753edb11a9d
diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex 1df28e85..38226852 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -32,6 +32,7 @@ final class SettingsStore: ObservableObject {self.migrateSecondaryPromptShortcutIfNeeded()self.normalizePromptSelectionsIfNeeded()self.normalizeProviderSelectionForCurrentVerificationState()+ self.enforceOnboardingGenerationIfNeeded()self.migrateOverlayBottomOffsetTo50IfNeeded()self.refreshLaunchAtStartupStatus(clearError: true, logMismatch: false)}@@ -2033,6 +2034,27 @@ final class SettingsStore: ObservableObject {set { self.defaults.set(newValue, forKey: Keys.playgroundUsed) }}+ /// Bump this when shipping a version that should force all users (new + existing) through+ /// onboarding again. The user's stored generation is compared on init; if it's below this+ /// value, onboarding is reset. Each forced ship increments this by 1.+ private static let currentOnboardingGeneration: Int = 2++ /// Force onboarding reset for users whose stored generation is below the current one.+ /// Called during init() so it takes effect before any UI decision.+ private func enforceOnboardingGenerationIfNeeded() {+ let storedGeneration = self.defaults.integer(forKey: Keys.onboardingGeneration)+ guard storedGeneration < Self.currentOnboardingGeneration else { return }++ // Reset onboarding state and bump the stored generation so this is a one-time reset.+ objectWillChange.send()+ self.defaults.set(false, forKey: Keys.onboardingCompleted)+ self.defaults.set(0, forKey: Keys.onboardingCurrentStep)+ self.defaults.set(false, forKey: Keys.onboardingAISkipped)+ self.defaults.set(false, forKey: Keys.onboardingPlaygroundValidated)+ self.defaults.set(false, forKey: Keys.onboardingPlaygroundSkipped)+ self.defaults.set(Self.currentOnboardingGeneration, forKey: Keys.onboardingGeneration)+ }+var onboardingCompleted: Bool {get {if self.defaults.object(forKey: Keys.onboardingCompleted) == nil {@@ -2043,6 +2065,9 @@ final class SettingsStore: ObservableObject {set {objectWillChange.send()self.defaults.set(newValue, forKey: Keys.onboardingCompleted)+ if newValue {+ self.defaults.set(Self.currentOnboardingGeneration, forKey: Keys.onboardingGeneration)+ }}}@@ -2156,6 +2181,7 @@ final class SettingsStore: ObservableObject {func resetOnboardingProgress() {objectWillChange.send()self.defaults.set(false, forKey: Keys.onboardingCompleted)+ self.defaults.set(Self.currentOnboardingGeneration, forKey: Keys.onboardingGeneration)self.defaults.set(0, forKey: Keys.onboardingCurrentStep)self.defaults.set(false, forKey: Keys.onboardingAISkipped)self.defaults.set(false, forKey: Keys.onboardingPlaygroundValidated)@@ -4125,6 +4151,7 @@ private extension SettingsStore {static let snoozedUpdateVersion = "SnoozedUpdateVersion"static let playgroundUsed = "PlaygroundUsed"static let onboardingCompleted = "OnboardingCompleted"+ static let onboardingGeneration = "OnboardingGeneration"static let onboardingCurrentStep = "OnboardingCurrentStep"static let onboardingAISkipped = "OnboardingAISkipped"static let onboardingPlaygroundValidated = "OnboardingPlaygroundValidated"