Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleyel committed Jan 19, 2025
1 parent c7a1335 commit 43a1ea4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/python/Screens/VolumeAdjust.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from Components.config import ConfigSelection, ConfigSelectionNumber, ConfigSubsection, ConfigYesNo, NoSave, config, getConfigListEntry
from Components.ServiceEventTracker import ServiceEventTracker
from Components.Sources.StaticText import StaticText
from Components.VolumeControl import VolumeControl
from Screens.ChannelSelection import ChannelSelectionBase, OFF
from Screens.Setup import Setup
from Tools.Directories import SCOPE_CONFIG, fileReadXML, moveFiles, resolveFilename
Expand Down Expand Up @@ -412,11 +413,11 @@ def getPlayingServiceReference(self):

def setVolume(self, value):
self.volumeControl.setVolume(value, value) # Set new volume
if self.volumeControlInstance is not None:
self.volumeControlInstance.volumeDialog.setValue(value) # Update progressbar value
if VolumeControl.instance:
VolumeControl.instance.volumeDialog.setValue(value) # Update progressbar value
if config.volume.showVolumeBar.value:
self.volumeControlInstance.volumeDialog.show()
self.volumeControlInstance.hideVolTimer.start(3000, True)
VolumeControl.instance.volumeDialog.show()
VolumeControl.instance.hideVolTimer.start(3000, True)
config.volumeControl.volume.value = self.volumeControl.getVolume()
config.volumeControl.volume.save()

Expand Down

0 comments on commit 43a1ea4

Please sign in to comment.