()
| 120 | } |
| 121 | |
| 122 | async function pickBinaryPath() { |
| 123 | const nextPath = await window.clawDesktop?.pickFile?.([ |
| 124 | { name: 'Executable', extensions: ['exe', 'bin', 'cmd'] }, |
| 125 | { name: 'All Files', extensions: ['*'] }, |
| 126 | ]); |
| 127 | if (nextPath) { |
| 128 | setConfig(current => ({ |
| 129 | ...current, |
| 130 | clawBinaryPath: nextPath, |
| 131 | })); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | function move(delta: -1 | 1) { |
| 136 | const nextIndex = Math.min(Math.max(stepIndex + delta, 0), wizardSteps.length - 1); |