if vol >= 100 - ajvol: # check if delta + vol < 100
ajvol = 100 - vol # correct delta value
self.lastAdjustedValue = ajvol # save delta value
- if (ajvol !=0 or self.defaultValue == 0) and (vol+ajvol != currentvol): # only adjust volume when delta != 0 and current vol != new volume
+ if (vol + ajvol != currentvol): # only when current vol != new volume
if ajvol == 0:
ajvol = vol+self.lastAdjustedValue - currentvol # correction for debug -print only
self.volctrl.setVolume(vol+self.lastAdjustedValue, vol+self.lastAdjustedValue)
self.volumeDialog.show()
self.hideVolTimer.start(3000, True)
if ok:
- baseVolumeControl_setVolume(self, direction)
\ No newline at end of file
+ baseVolumeControl_setVolume(self, direction)
+
i = len(self.config.Entries) - 1
self.config.Entries[i].servicereference = ConfigText(default = "")
self.config.Entries[i].name = NoSave(ConfigDirectory(default = _("Press OK to select a service")))
- self.config.Entries[i].adjustvalue = ConfigInteger(default=25, limits=(5,50))
+ self.config.Entries[i].adjustvalue = ConfigInteger(default=25, limits=(0,50))
return self.config.Entries[i]
def remove(self, configItem):