()
| 210 | }) |
| 211 | |
| 212 | const toggleTerminal = () => { |
| 213 | const next = !view().terminal.opened() |
| 214 | view().terminal.toggle() |
| 215 | if (!next) return |
| 216 | |
| 217 | const id = terminal.active() |
| 218 | if (!id) return |
| 219 | focusTerminalById(id) |
| 220 | } |
| 221 | |
| 222 | const [prefs, setPrefs] = persisted(Persist.global("open.app"), createStore({ app: "finder" as OpenApp })) |
| 223 | const [menu, setMenu] = createStore({ open: false }) |
nothing calls this directly
no test coverage detected