Skip to content

Commit 9982ee3

Browse files
committed
Fix the timing of KeyboardShortcuts initialization
1 parent e77fd16 commit 9982ee3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Core/Sources/HostApp/HostApp.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ struct HostApp: ReducerProtocol {
2727
}
2828

2929
@Dependency(\.toast) var toast
30+
31+
init() {
32+
KeyboardShortcuts.userDefaults = .shared
33+
}
3034

3135
var body: some ReducerProtocol<State, Action> {
3236
Scope(state: \.general, action: /Action.general) {
@@ -44,7 +48,6 @@ struct HostApp: ReducerProtocol {
4448
Reduce { _, action in
4549
switch action {
4650
case .appear:
47-
KeyboardShortcuts.userDefaults = .shared
4851
return .none
4952

5053
case .informExtensionServiceAboutLicenseKeyChange:

0 commit comments

Comments
 (0)