Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix camera configuration bug and remove duplicate code #114

Merged
merged 6 commits into from
Mar 7, 2024

Conversation

WeisLeDocto
Copy link
Member

As detailed in #113, the camera configuration window currently displays repeatedly an error image in case the Camera object returning the images alternatively returns images or None. This behavior is not the intended one, as the error image should only be displayed once as the very first frame. In case None values are received later, the last acquired image should remain in the interface.

This PR fixes #113. It also removes duplicate code in children of the camera configuration window class, by using ad-hoc helper functions re-defined by the children classes. As a side-effect, this refactoring propagates the fix of d6247ef to the children classes. Its propagation had been omitted, due to duplicates in code !

Avoids repeating code, and therefore prevents partial fixes in the future.
The error image indicating that no image could be grabbed was being displayed recurrently, whereas it should only be before the very first image is captured.

Fixes #113
@WeisLeDocto WeisLeDocto added the bug label Mar 7, 2024
@WeisLeDocto WeisLeDocto self-assigned this Mar 7, 2024
@WeisLeDocto WeisLeDocto linked an issue Mar 7, 2024 that may be closed by this pull request
@WeisLeDocto WeisLeDocto merged commit 90ceb7a into develop Mar 7, 2024
19 checks passed
@WeisLeDocto WeisLeDocto deleted the fix/camera_config_bug_and_refactor branch March 7, 2024 15:40
@WeisLeDocto WeisLeDocto mentioned this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

camera_config display issues
1 participant