Skip to content

Fix: close calibration overlay when a session ends via skip#30

Open
danielkaijzer wants to merge 1 commit into
mainfrom
fix/calibration-overlay-close-on-skip
Open

Fix: close calibration overlay when a session ends via skip#30
danielkaijzer wants to merge 1 commit into
mainfrom
fix/calibration-overlay-close-on-skip

Conversation

@danielkaijzer
Copy link
Copy Markdown
Owner

App._loop checked the calibration active->inactive transition only between tick() and key handling. A session finished by skipping the last point ends inside _handle_key (skip -> _finish -> _end), after that check, so the overlay was never closed and the Tk window froze. A later restart then created a second Tk root, surfacing as "image pyimageN doesn't exist".

Move the transition check to after _handle_key so it catches both the capture-completion and skip-to-finish paths.

App._loop checked the calibration active->inactive transition only between tick() and key handling. A session finished by skipping the last point ends inside _handle_key (skip -> _finish -> _end), after that check, so the overlay was never closed and the Tk window froze. A later restart then created a second Tk root, surfacing as "image pyimageN doesn't exist".

Move the transition check to after _handle_key so it catches both the capture-completion and skip-to-finish paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant