fix: 'Add Tag to Selected' action fails#1224
Conversation
|
Thank you for the quick fix! Though I believe this uncovered a related issue where setting the tags from this action causes the selection in the preview panel to reset. Good news is that it looks straightforward enough to fix, with the cause seeming to be the lambda variable assignment on line 371 of self.add_tag_modal.tsp.tag_chosen.connect(
lambda t: (
self.add_tags_to_selected_callback([t]),
self.main_window.preview_panel.set_selection(self.selected),
)
)I also noticed a similar use of |
|
I've also noticed while testing just now that, when adding tags through the 'Add Tag' button, the badges associated with that tag will update as expected. But when doing the same with the 'Add Tag to Selected' action, the badges will only update upon viewing the entry in the preview panel. |
Went ahead and fixed this as well |
CyanVoxel
left a comment
There was a problem hiding this comment.
Looks all good, thank you for the fixes!
* Fix * Fix preview panel being reset * Fix 'Add Tag to Selected' not emitting badge signals
Summary
Fixes a bug where using the 'Edit > Add Tag to Selected' action would fail and not add the chosen tag.
Was brought up in https://discord.com/channels/1229183630228848661/1229309667528806420/1442232941509083197.
(Recreated from #1223 as it was closed when I renamed the branch)
Tasks Completed