diff --git a/mac/Sources/Byre/Switcher.swift b/mac/Sources/Byre/Switcher.swift index 84c0033..73e3a97 100644 --- a/mac/Sources/Byre/Switcher.swift +++ b/mac/Sources/Byre/Switcher.swift @@ -26,7 +26,11 @@ func runGo(_ key: String, _ store: Store, _ overlays: Overlays) { } switch key { case "k": - overlays.openSwitcher(store) + if let switcher = overlays.switcher { + switcher.close() + } else { + overlays.openSwitcher(store) + } case "n": overlays.switcher?.close() if let project = store.focusedProject() ?? store.projects.first {