[Bug]: "Fix Unlinked Entries" not functioning, only returns None
count
#652
Labels
Priority: High
An important issue requiring attention
TagStudio: Library
Relating to the TagStudio library system
Type: Bug
Something isn't working as intended
Milestone
Checklist
TagStudio Version
main
branch (v9.5.0)Operating System & Version
macOS 15.1.1
Description
Using the "Fix Unlined Entries" tool only ever returns "None" as the count value, even if there are unlinked entries present in the library.
This seems to stem from this change made to
fix_unlinked.py
in #528. From what I can tell it seems thatset_missing_count()
is being passed as a callable function tofrom_iterable_function
and is being called when thedone
signal inside its CustomRunnabler
is emitted - however without any count argument passing toset_missing_count()
, resulting in the method's default behavior of setting the count toNone
.Expected Behavior
Refreshing the unlinked entries method should return the count of the unlinked entries, and a 0 if none are found. Note that the "None" text currently being shown is not a result of there being no unlinked entries, but rather is an errant
None
value being displayed as the count.Steps to Reproduce
Open a TagStudio library
Move or delete a present in the library on disk to create an "unlinked entry"
Go to "Tools -> Fix Unlinked Entries" and click "Refresh All"
Note how the count now always says "Unlinked Entries: None"
Bonus: Repeat the previous steps while omitting step 2, noting the same result
Logs
No response
The text was updated successfully, but these errors were encountered: