From 942e607cf05acce9bf94f9ad719af6bc84d0aa61 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 23 Feb 2018 12:21:39 -0600 Subject: [PATCH] Fixed errors in volume slider manipulation --- src/controller/mainController.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index d15c107..eb12022 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -116,13 +116,16 @@ class Controller(object): player.player.stop() def on_volume_down(self, *args, **kwargs): - self.window.vol_slider.SetValue(self.window.volume_slider.GetValue()-5) + self.window.vol_slider.SetValue(self.window.vol_slider.GetValue()-5) + self.on_set_volume() def on_volume_up(self, *args, **kwargs): - self.window.vol_slider.SetValue(self.window.volume_slider.GetValue()-5) + self.window.vol_slider.SetValue(self.window.vol_slider.GetValue()+5) + self.on_set_volume() def on_mute(self, *args, **kwargs): - player.player.volume = 0 + self.window.vol_slider.SetValue(0) + self.on_set_volume() def on_shuffle(self, *args, **kwargs): player.player.shuffle = self.window.player_shuffle.IsChecked()