From 13d2eeb9b2af9025e914128248ddf8589f71b405 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 9 Apr 2026 20:12:21 +0200 Subject: [PATCH] update gpu-switch-mode-indicator.tsx --- AppImage/components/gpu-switch-mode-indicator.tsx | 10 +++++++--- AppImage/components/script-terminal-modal.tsx | 4 +--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/AppImage/components/gpu-switch-mode-indicator.tsx b/AppImage/components/gpu-switch-mode-indicator.tsx index 700f3139..d268a9c4 100644 --- a/AppImage/components/gpu-switch-mode-indicator.tsx +++ b/AppImage/components/gpu-switch-mode-indicator.tsx @@ -29,10 +29,14 @@ export function GpuSwitchModeIndicator({ const vmColor = isVmActive ? "#a855f7" : inactiveColor const handleClick = (e: React.MouseEvent) => { - e.stopPropagation() - if (isEditing && onToggle) { - onToggle(e) + // Only stop propagation and handle toggle when in editing mode + if (isEditing) { + e.stopPropagation() + if (onToggle) { + onToggle(e) + } } + // When not editing, let the click propagate to the card to open the modal } return ( diff --git a/AppImage/components/script-terminal-modal.tsx b/AppImage/components/script-terminal-modal.tsx index 296e3475..fb6f2b3f 100644 --- a/AppImage/components/script-terminal-modal.tsx +++ b/AppImage/components/script-terminal-modal.tsx @@ -278,9 +278,7 @@ const initMessage = { const initMessage = { script_path: scriptPath, - params: { - EXECUTION_MODE: "web", - }, + params, } ws.send(JSON.stringify(initMessage))