Collection count isn't properly updated after a rescan [0.3]

Bug #296172 reported by Dan O'Reilly
2
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Undecided
Unassigned

Bug Description

After a rescan, the collection count displayed in the lower right of the GUI isn't updated. This is because xlgui/main.py keeps a _cached_count, which is only updated if its current value is -1. So once its initially set when exaile loads, it never gets updated again. It looks like the collection.get_count() method used to update the cached length is just calling len() on the collection list (dict?), so I don't think there's any harm in just calling that every time we want to update the count in the GUI.

Revision history for this message
Dan O'Reilly (oreilldf) wrote :
description: updated
Revision history for this message
reacocard (reacocard) wrote :

Fixed in r1697

Changed in exaile:
status: New → Fix Committed
reacocard (reacocard)
Changed in exaile:
milestone: none → 0.3.0
reacocard (reacocard)
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.