Przeglądaj źródła

Merge pull request #21 from cuu/master

sound setting OnLoadCb sync sound volume
clockworkpi 6 lat temu
rodzic
commit
90477c8f34
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      Menu/GameShell/10_Settings/Sound/sound_page.py

+ 5 - 1
Menu/GameShell/10_Settings/Sound/sound_page.py

@@ -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