Skip to content

Commit 995a830

Browse files
BohdanBohdan
authored andcommitted
Added deliverImmediately into DistributedNotificationCenter observer
1 parent caebcc2 commit 995a830

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

LanguageFlag/Helpers/NotificationManager.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ extension NotificationManager {
2222
self,
2323
selector: #selector(handleInputSourceChange),
2424
name: NSNotification.Name(kTISNotifySelectedKeyboardInputSourceChanged as String),
25-
object: nil
25+
object: nil,
26+
suspensionBehavior: .deliverImmediately
2627
)
2728
}
2829

LanguageFlag/Stories/Preferences/Panes/GeneralPreferencesPane.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ struct GeneralPreferencesPane: View {
1111
@Binding var showCapsLockIndicator: Bool
1212
@Binding var bypassClick: Bool
1313
@Binding var showDockIndicator: Bool
14+
1415
let onReset: () -> Void
1516

1617
@State private var showResetConfirmation = false

0 commit comments

Comments
 (0)