added progressbar to main ui & bugfix

This commit is contained in:
janis
2022-10-31 18:18:46 +01:00
parent ac673bb979
commit 01a3dd57d1
6 changed files with 26 additions and 10 deletions

View File

@@ -70,12 +70,13 @@ class ShowcaseScreen(MDScreen):
self.__current = comHandler.getcurrentsong(address)
self.__upcoming = comHandler.getupcomingsongs(address)
self.songlength = comHandler.getsonglength(address)
elif self.songpos > self.lastsongpos:
self.isplaying = True
elif self.songpos == self.lastsongpos:
self.isplaying = False
else:
pass
if self.songpos > self.lastsongpos:
self.isplaying = True
elif self.songpos == self.lastsongpos:
self.isplaying = False
else:
pass
self.lastsongpos = self.songpos
self.ids.current_song.text = self.__current
self.ids.upcoming_songs.text = self.__upcoming