fix(tui): Move animations toggle to global System category (resolves #10495) (#10497)

This commit is contained in:
Ariane Emory
2026-01-25 17:57:47 -05:00
committed by GitHub
parent f0830a74bb
commit 3071720ce7
2 changed files with 9 additions and 9 deletions

View File

@@ -570,6 +570,15 @@ function App() {
dialog.clear()
},
},
{
title: kv.get("animations_enabled", true) ? "Disable animations" : "Enable animations",
value: "app.toggle.animations",
category: "System",
onSelect: (dialog) => {
kv.set("animations_enabled", !kv.get("animations_enabled", true))
dialog.clear()
},
},
])
createEffect(() => {

View File

@@ -570,15 +570,6 @@ export function Session() {
dialog.clear()
},
},
{
title: animationsEnabled() ? "Disable animations" : "Enable animations",
value: "session.toggle.animations",
category: "Session",
onSelect: (dialog) => {
setAnimationsEnabled((prev) => !prev)
dialog.clear()
},
},
{
title: "Page up",
value: "session.page.up",