mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
sound setting OnLoadCb sync sound volume
This commit is contained in:
parent
858500a027
commit
ee9d199ee1
@ -118,7 +118,11 @@ class SoundPage(Page):
|
||||
|
||||
m = alsaaudio.Mixer()
|
||||
self._MySlider.SetValue(m.getvolume()[0])
|
||||
|
||||
|
||||
def OnLoadCb(self):
|
||||
m = alsaaudio.Mixer()
|
||||
self._MySlider.SetValue(m.getvolume()[0])
|
||||
|
||||
def WhenSliderDrag(self,value): ##value 0-100
|
||||
if value < 0 or value > 100:
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user