fixup! Fix playlist table jitter

This commit is contained in:
Peder Bergebakken Sundt 2019-11-24 16:51:15 +01:00
parent a78ce91b3b
commit 2d00a8af4b
1 changed files with 3 additions and 2 deletions

View File

@ -322,8 +322,9 @@ class RemiApp(App):
ICON_TRASH, ICON_TRASH,
]) ])
if table == self.old_playlist: return this_playlist = zip(table, [i.get("current", False) for i in playlist]) # ew, but it works...
self.old_playlist = table if this_playlist == self.old_playlist: return
self.old_playlist = this_playlist
self.playlist.table.empty(keep_title=True) self.playlist.table.empty(keep_title=True)
self.playlist.table.append_from_list(table) self.playlist.table.append_from_list(table)