pull/5038/merge
Ariane Emory 2026-04-08 05:20:16 +00:00 committed by GitHub
commit 48779577d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -267,6 +267,7 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
const sync = useSync()
const exit = useExit()
const promptRef = usePromptRef()
const [consoleVisible, setConsoleVisible] = createSignal(false)
const routes: RouteMap = new Map()
const [routeRev, setRouteRev] = createSignal(0)
const routeView = (name: string) => {
@ -731,11 +732,12 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
},
},
{
title: "Toggle console",
title: consoleVisible() ? "Hide console" : "Show console",
category: "System",
value: "app.console",
onSelect: (dialog) => {
renderer.console.toggle()
setConsoleVisible((prev) => !prev)
dialog.clear()
},
},