diff --git a/Sources/Support/AudioStoragePreferences.swift b/Sources/Support/AudioStoragePreferences.swift index 341a994ba..4f87e6f17 100644 --- a/Sources/Support/AudioStoragePreferences.swift +++ b/Sources/Support/AudioStoragePreferences.swift @@ -57,14 +57,9 @@ enum AudioStoragePreferences { userDefaults: UserDefaults = .standard ) { userDefaults.set(window.rawValue, forKey: deleteAudioAfterKey) - NotificationCenter.default.post(name: .audioStoragePreferencesDidChange, object: nil) } } -extension Notification.Name { - static let audioStoragePreferencesDidChange = Notification.Name("audioStoragePreferencesDidChange") -} - /// How long a dictation's audio is kept after its transcript saves. Separate /// from the meeting window: dictation audio defaults to 30 days so a take can /// be played back or transcribed again, and the text is always kept. @@ -124,6 +119,5 @@ extension AudioStoragePreferences { userDefaults: UserDefaults = .standard ) { userDefaults.set(window.rawValue, forKey: dictationAudioKeepKey) - NotificationCenter.default.post(name: .audioStoragePreferencesDidChange, object: nil) } }