feat: an OpenRGB device says when its server goes, with nothing being sent #36

Merged
jwarykowski merged 1 commit from feat/openrgb-onlost into main 2026-11-08 06:02:06 +00:00
Owner

Device.OnLost(fn) calls fn once when the OpenRGB server ends the connection (OpenRGB quitting), never after Close. keybars Pro already listens for OnLost on any keyboard that has it (ZSA boards do), so with this an idle app notices OpenRGB going straight away instead of at its next write.

Tests: the fake server dropping the connection with nothing sent, and no call after Close. Checked in keybars Pro's system tests against this branch: OpenRGB stopped while nothing plays, and the app says it's reconnecting at once.

`Device.OnLost(fn)` calls fn once when the OpenRGB server ends the connection (OpenRGB quitting), never after `Close`. keybars Pro already listens for `OnLost` on any keyboard that has it (ZSA boards do), so with this an idle app notices OpenRGB going straight away instead of at its next write. Tests: the fake server dropping the connection with nothing sent, and no call after Close. Checked in keybars Pro's system tests against this branch: OpenRGB stopped while nothing plays, and the app says it's reconnecting at once.
feat: an OpenRGB device says when its server goes, with nothing being sent
All checks were successful
CI / notices (pull_request) Successful in 15s
CI / checks (pull_request) Successful in 1m12s
CI / go (pull_request) Successful in 0s
250c8ea4d0
Device.OnLost, as ZSA boards have in keybars Pro: called once when the connection ends other than by Close, as when OpenRGB quits. Until now the loss showed only at the next write, so an app idling over silence never noticed.
jwarykowski deleted branch feat/openrgb-onlost 2026-11-08 06:02:06 +00:00
Sign in to join this conversation.
No description provided.