[Enhancement]: Deleting Active Tag Removes from Filter #91
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer#91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Fixed on branch
0.1.40/issue-86-91-tag-filter-fixes(queued for PR tomain, 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 onImageFilterProxy, 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 fromfilter_proxy's active set. An empty resulting set is already treated byImageFilterProxyas "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.pycovering both the multi-tag and only-active-tag cases.Closing — fix implemented and tested.