fix(LamNI): open X-ray eye GUI widget in update_frame() if not already open #273

Merged
holler merged 1 commits from lamni_xrayeye_update_frame_gui_fix into main 2026-07-27 12:35:29 +02:00
1 Commits
Author SHA1 Message Date
x01dcandClaude Sonnet 5 90e0fe039d fix(LamNI): open X-ray eye GUI widget in update_frame() if not already open
CI for csaxs_bec / test (push) Successful in 4m39s
CI for csaxs_bec / test (pull_request) Successful in 3m1s
update_frame() (reached via lamni.leye_in() -> xrayeye_update_frame())
used self.gui (lamni.xeyegui) directly, but that's None until the widget
has been opened by lamnigui_show_xeyealign() -- which align() and
find_rotation_center() call first, but update_frame() never did. If it's
the first X-ray-eye call of a session, this raised
AttributeError: 'NoneType' object has no attribute 'on_live_view_enabled'.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-27 10:11:03 +02:00