mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed playlist refresh
This commit is contained in:
parent
da1bb25d1d
commit
db5fbef06e
@ -906,11 +906,11 @@ class TrackView(Gtk.Box):
|
|||||||
self.store.set(treeiter, 0, track, 1, title, 2, artist, 3, album, 4, duration, 5, song["file"])
|
self.store.set(treeiter, 0, track, 1, title, 2, artist, 3, album, 4, duration, 5, song["file"])
|
||||||
except:
|
except:
|
||||||
self.store.append([track, title, artist, album, duration, song["file"]])
|
self.store.append([track, title, artist, album, duration, song["file"]])
|
||||||
for i in reversed(range(int(self.client.status()["playlistlength"]), len(self.store))):
|
for i in reversed(range(int(self.client.status()["playlistlength"]), len(self.store))):
|
||||||
treeiter=self.store.get_iter(i)
|
treeiter=self.store.get_iter(i)
|
||||||
self.store.remove(treeiter)
|
self.store.remove(treeiter)
|
||||||
self.refresh_playlist_info()
|
self.refresh_playlist_info()
|
||||||
self.refresh_selection()
|
self.refresh_selection()
|
||||||
self.playlist_version=self.client.status()["playlist"]
|
self.playlist_version=self.client.status()["playlist"]
|
||||||
|
|
||||||
def on_player_changed(self, *args):
|
def on_player_changed(self, *args):
|
||||||
|
Loading…
Reference in New Issue
Block a user