kevin 04d2e6e429 fix: correct connect/disconnect button state on connection lifecycle
- Enable disconnect button immediately when connect is clicked, so the
  user can cancel without waiting for the StateConnecting IPC event.
- Disable disconnect button on all error paths in the connect goroutine
  to restore the default disconnected button state.
- Capture ipcClient once at eventLoop start instead of re-reading every
  iteration, preventing a second onConnect call from making the old
  event loop jump to the new client and consume events concurrently.
- In eventLoop recv error recovery, only reset button states if the
  current ipcClient still matches the captured one, so a stale
  disconnection does not clobber the state of a newer session.
- Disable connect button in StateReconnecting case (was missing).
- Remove WriteOK from daemon startSession: the StateConnecting event
  already serves as the implicit acknowledgment; the OK response was
  being read by eventLoop as a no-op event, adding unnecessary noise.
2026-07-06 19:34:29 +08:00
2026-07-06 16:21:06 +08:00
2026-07-06 16:52:04 +08:00
up
2026-07-06 16:26:22 +08:00
2026-07-06 16:52:04 +08:00
2026-07-06 16:21:06 +08:00
S
Description
No description provided
MIT
28 MiB
Languages
Go 89.5%
Inno Setup 8.5%
Makefile 2%