Skip to content

Commit 27c9cdc

Browse files
committed
Fix that the host app is observing the global shortcut
1 parent 0b93f92 commit 27c9cdc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Core/Sources/HostApp/GeneralView.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,12 @@ struct GeneralSettingsView: View {
288288

289289
Text("pt")
290290
}
291-
292-
KeyboardShortcuts.Recorder("Hotkey to Toggle Widgets", name: .showHideWidget)
293-
291+
292+
KeyboardShortcuts.Recorder("Hotkey to Toggle Widgets", name: .showHideWidget) { _ in
293+
// It's not used in this app!
294+
KeyboardShortcuts.disable(.showHideWidget)
295+
}
296+
294297
Toggle(isOn: $settings.showHideWidgetShortcutGlobally) {
295298
Text("Enable the Hotkey Globally")
296299
}

0 commit comments

Comments
 (0)