libsaria: Set initial matching ids
This should be initialized to the set of all ids to begin with. That way everything will match.
This commit is contained in:
parent
cb162bfa9f
commit
39198ff2ce
|
@ -41,8 +41,10 @@ def add_tracks(tracks):
|
|||
add_to_index(id, track.title)
|
||||
|
||||
def reindex():
|
||||
global matching
|
||||
for src, tracks in library.lib_dict.iteritems():
|
||||
add_tracks(tracks)
|
||||
matching = all_ids
|
||||
|
||||
def is_visible(id):
|
||||
return id in matching
|
||||
|
|
Loading…
Reference in New Issue