libsaria: Clear cur_id when loading file
This allows me to return the correct attributes for a random song loaded by the user.
This commit is contained in:
parent
d9f89e0ecd
commit
9be5b10112
|
@ -24,6 +24,7 @@ def open_xml(file):
|
|||
|
||||
def open_music(file):
|
||||
try:
|
||||
libsaria.sources.cur_id = None
|
||||
libsaria.controls.load(file)
|
||||
libsaria.controls.play()
|
||||
except Exception, e:
|
||||
|
|
Loading…
Reference in New Issue