From 168108d81855f24af36419ce76cb9c918250ad1a Mon Sep 17 00:00:00 2001 From: IanSav Date: Mon, 26 Aug 2024 02:48:29 +1000 Subject: [PATCH] [AudioSelection.py] Remove the volume control options These volume control options do not work as they are not accessible through any of the active ActionMaps. Further, the volume controls are actually global functions that are centrally managed anyway so there would be no reason to force replicate those commands here. --- lib/python/Screens/AudioSelection.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/python/Screens/AudioSelection.py b/lib/python/Screens/AudioSelection.py index 6ce4ef6164b..ff98a31b63e 100644 --- a/lib/python/Screens/AudioSelection.py +++ b/lib/python/Screens/AudioSelection.py @@ -12,7 +12,6 @@ from Components.Sources.List import List from Components.Sources.Boolean import Boolean from Components.SystemInfo import BoxInfo -from Components.VolumeControl import VolumeControl from enigma import iPlayableService, eTimer, eSize @@ -68,9 +67,6 @@ def __init__(self, session, infobar=None, page=PAGE_AUDIO): "down": self.keyDown, "left": self.keyLeft, "right": self.keyRight, - "volumeUp": self.volumeUp, - "volumeDown": self.volumeDown, - "volumeMute": self.volumeMute, "menu": self.openAutoLanguageSetup, "1": self.keyNumberGlobal, "2": self.keyNumberGlobal, @@ -547,15 +543,6 @@ def keyDown(self): elif self.focus == FOCUS_STREAMS: self["streams"].selectNext() - def volumeUp(self): - VolumeControl.instance and VolumeControl.instance.volUp() - - def volumeDown(self): - VolumeControl.instance and VolumeControl.instance.volDown() - - def volumeMute(self): - VolumeControl.instance and VolumeControl.instance.volMute() - def keyNumberGlobal(self, number): if number <= len(self["streams"].list): self["streams"].setIndex(number - 1)