Skip to content

Commit

Permalink
maintain focus
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-jpq committed Oct 27, 2024
1 parent 090c6b0 commit bacd90a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chadtree/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ async def step(method: Method, params: Sequence[Any]) -> None:
async with lock:
if stage := await handler(state_ref.val, *params):
state_ref.val = stage.state
focus_ref.val = stage.focus
if stage.focus:
focus_ref.val = stage.focus
event.set()
else:
assert False, (method, params)
Expand Down

0 comments on commit bacd90a

Please sign in to comment.