[Enhancement]: Deleting Active Tag Removes from Filter #91

Closed
opened 2026-06-14 22:02:21 +00:00 by ValleyGeek · 1 comment
Owner

Affected area

Tag Filter and Tag Name Toolbox

Current behavior

If a tag is active and you delete it the tag filter doesn't remove it

Desired improvement

When a tag is deleted, remove it from the active filter list. If it's the only active tag then stop filtering

References

No response

### Affected area Tag Filter and Tag Name Toolbox ### Current behavior If a tag is active and you delete it the tag filter doesn't remove it ### Desired improvement When a tag is deleted, remove it from the active filter list. If it's the only active tag then stop filtering ### References _No response_
Member

Fixed on branch 0.1.40/issue-86-91-tag-filter-fixes (queued for PR to main, not yet opened).

Root cause: TagFilterDropdown.set_tag_catalog() already drops a deleted tag from its own internal active-tag list when the panel refreshes, but that's just the popup's display state — the actual active-tag set driving the grid lives separately on ImageFilterProxy, and nothing told it the tag was gone. The grid kept filtering by a tag name no image has anymore, which just looked like the filter was stuck.

_on_delete_tag_from_panel() now also removes the deleted tag from filter_proxy's active set. An empty resulting set is already treated by ImageFilterProxy as "no tag filter applied," so deleting the only active tag correctly stops filtering entirely, per the issue description.

Added regression tests in tests/test_pr9_tags.py covering both the multi-tag and only-active-tag cases.

Closing — fix implemented and tested.

Fixed on branch `0.1.40/issue-86-91-tag-filter-fixes` (queued for PR to `main`, not yet opened). Root cause: `TagFilterDropdown.set_tag_catalog()` already drops a deleted tag from its own internal active-tag list when the panel refreshes, but that's just the popup's display state — the actual active-tag set driving the grid lives separately on `ImageFilterProxy`, and nothing told it the tag was gone. The grid kept filtering by a tag name no image has anymore, which just looked like the filter was stuck. `_on_delete_tag_from_panel()` now also removes the deleted tag from `filter_proxy`'s active set. An empty resulting set is already treated by `ImageFilterProxy` as "no tag filter applied," so deleting the only active tag correctly stops filtering entirely, per the issue description. Added regression tests in `tests/test_pr9_tags.py` covering both the multi-tag and only-active-tag cases. Closing — fix implemented and tested.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ai-collab/bulk-image-organizer#91
No description provided.