Skip to content

Commit

Permalink
PICARD-1488: Fix player volume and speed not being set on start
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Aug 13, 2019
1 parent 8da6879 commit 6e8b074
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions picard/ui/playertoolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,14 @@ def __init__(self, parent, player):
self.addWidget(progress_widget)

volume = get_logarithmic_volume(config.persist["mediaplayer_volume"])
self.player.set_volume(volume)
self.volume_button = VolumeControlButton(self, volume)
self.volume_button.volume_changed.connect(self.player.set_volume)
self.volume_button.setToolButtonStyle(self.toolButtonStyle())
self.addWidget(self.volume_button)

playback_rate = config.persist["mediaplayer_playback_rate"]
self.set_playback_rate(playback_rate)
self.playback_rate_button = PlaybackRateButton(self, playback_rate)
self.playback_rate_button.playback_rate_changed.connect(self.set_playback_rate)
self.playback_rate_button.setToolButtonStyle(self.toolButtonStyle())
Expand Down

0 comments on commit 6e8b074

Please sign in to comment.