Skip to content

Commit

Permalink
Holbein Edition
Browse files Browse the repository at this point in the history
  • Loading branch information
project-owner committed Sep 25, 2019
1 parent 5ed7747 commit 7eff5ce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/menu/stationmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def set_station(self, index, save=True):
:param save: flag defining if index should be saved in configuration object, True - save, False - don't save
"""
try:
self.config[PLAYER_SETTINGS][PAUSE] = False
self.init_station(index)
self.draw()
self.button.state.volume = self.config[PLAYER_SETTINGS][VOLUME]
Expand Down
3 changes: 2 additions & 1 deletion ui/screen/bookplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def set_audio_file(self, new_track, s=None):
t = self.playlist[i]
url = t["mp3"]
name = t["title"]


self.config[PLAYER_SETTINGS][PAUSE] = False
state.file_name = name
self.config[AUDIOBOOKS][BROWSER_TRACK_FILENAME] = t["file_name"]
state.mute = self.config[PLAYER_SETTINGS][MUTE]
Expand Down
1 change: 1 addition & 0 deletions ui/screen/fileplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ def set_audio_file(self, new_track, s=None):
self.config[CD_PLAYBACK][CD_DRIVE_ID] = int(id)
self.config[CD_PLAYBACK][CD_TRACK] = int(parts[1].split("=")[1])

self.config[PLAYER_SETTINGS][PAUSE] = False
state.mute = self.config[PLAYER_SETTINGS][MUTE]
state.pause = self.config[PLAYER_SETTINGS][PAUSE]
state.file_type = FILE_AUDIO
Expand Down
1 change: 1 addition & 0 deletions ui/screen/podcastplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def set_audio_file(self, new_track, s=None):
else:
state.url = s.url

self.config[PLAYER_SETTINGS][PAUSE] = False
state.mute = self.config[PLAYER_SETTINGS][MUTE]
state.pause = self.config[PLAYER_SETTINGS][PAUSE]
state.file_type = FILE_AUDIO
Expand Down

0 comments on commit 7eff5ce

Please sign in to comment.