mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-05 06:35:43 +00:00
Animation
This commit is contained in:
@@ -20,11 +20,17 @@ class Tracklist(BaseScreen):
|
||||
self.manager.core.playback.current_tl_track.get())
|
||||
|
||||
def should_update(self):
|
||||
return self.list_view.should_update()
|
||||
if self.list_view.should_update():
|
||||
return BaseScreen.update_partial
|
||||
else:
|
||||
return BaseScreen.no_update
|
||||
|
||||
def update(self, screen, update_type, rects):
|
||||
def set_update_rects(self, rects):
|
||||
self.list_view.set_update_rects(rects)
|
||||
|
||||
def update(self, screen, update_type):
|
||||
update_all = (update_type == BaseScreen.update_all)
|
||||
self.list_view.render(screen, update_all, rects)
|
||||
self.list_view.render(screen, update_all)
|
||||
|
||||
def tracklist_changed(self):
|
||||
self.update_list()
|
||||
|
||||
Reference in New Issue
Block a user