Merge pull request #133 from cuu/master

soundpage bug fix
This commit is contained in:
GNU 2018-12-18 19:40:09 +08:00 committed by GitHub
commit 3f1a24fea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ class SoundSlider(Slider):
if self._Value < 0:
self._Value = 0
vol = self.snd_segs[self._Value][0]
vol = self.snd_segs[self._Value][0] + (self.snd_segs[self._Value][1] - self.snd_segs[self._Value][0])/2
if self.OnChangeCB != None:
if callable(self.OnChangeCB):