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

[ImageGallery] Match the filter selection with the gallery's display #1899

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

cbentejac
Copy link
Contributor

Description

Selecting any filter in the Image Gallery changes the displayed content of the gallery according to the filter. Unselecting any filter automatically switches the displayed content back to the "input images" filter (which simply displays all the input images), but the "input images" button is never reselected, meaning that there can be a display corresponding to a filter without any filter being selected, as shown in the image below.

This PR prevents unselecting a filter without reselecting the one corresponding to the display. Since the "input images" is always the display that is reverted back to, unselecting any filter automatically selects its button:

Selecting any filter in the Image Gallery changes the displayed content of
the gallery according to the filter. Unselecting any filter automatically
switches the displayed content back to the "input images" filter (which
simply displays all the input images), but the "input images" button is
never reselected, meaning that there can be a display corresponding to a
filter without any filter being selected.

This commit prevents unselecting a filter without reselecting the one
corresponding to the display. Since the "input images" is always the
display that is reverted to, unselecting any filter automatically selects
its button.
@cbentejac cbentejac self-assigned this Feb 15, 2023
@fabiencastan fabiencastan added this to the Meshroom 2023.1.0 milestone Feb 15, 2023
@fabiencastan fabiencastan merged commit 57b341c into develop Feb 16, 2023
@fabiencastan fabiencastan deleted the fix/uiImageGalleryFilters branch February 16, 2023 10:35
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.

2 participants