revert: remove non-ATX changes from #223 merge

This commit is contained in:
mofeng-git
2026-02-20 14:24:38 +08:00
parent 078c4e4ea1
commit 6e2c6dea1c
10 changed files with 67 additions and 87 deletions

View File

@@ -1407,19 +1407,15 @@ function openTerminalInNewTab() {
// ATX actions
async function handlePowerShort() {
console.log('[ConsoleView] Handling power short press')
try {
const res = await atxApi.power('short')
console.log('[ConsoleView] Power short API result:', res)
await atxApi.power('short')
await systemStore.fetchAtxState()
} catch (e) {
console.error('[ConsoleView] Power short API failed:', e)
} catch {
// ATX action failed
}
}
async function handlePowerLong() {
console.log('[ConsoleView] Handling power long press')
try {
await atxApi.power('long')
await systemStore.fetchAtxState()