fix(tui): toggle plugin on dialog submit

This commit is contained in:
Dax Raad 2026-08-31 14:28:19 -04:00
parent c17c104827
commit a68fe8a97d

View file

@ -156,6 +156,12 @@ export function PluginsDialog(props: {
onMove={(option) => setFocused(option.value)}
onSelect={(option) => {
const entry = entries().find((entry) => entry.key === option.value)
if (
entry?.runtime === "tui" &&
entry.id &&
props.plugins.registered().some((plugin) => plugin.id === entry.id)
)
return toggle(entry)
if (pluginError(entry)) setDetail(entry)
}}
actions={