mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
Fixed volume changing
This commit is contained in:
@@ -297,15 +297,13 @@ class MainScreen():
|
||||
volume = self.core.playback.volume.get() + 10
|
||||
if volume > 100:
|
||||
volume = 100
|
||||
self.manager.backend.tell(
|
||||
{'action': 'volume', 'value': volume})
|
||||
self.core.playback.volume = volume
|
||||
self.manager.volume_changed(volume)
|
||||
elif event.direction == InputManager.down:
|
||||
volume = self.core.playback.volume.get() - 10
|
||||
if volume < 0:
|
||||
volume = 0
|
||||
self.manager.backend.tell(
|
||||
{'action': 'volume', 'value': volume})
|
||||
self.core.playback.volume = volume
|
||||
self.manager.volume_changed(volume)
|
||||
|
||||
def click_on_objects(self, objects, event):
|
||||
|
||||
Reference in New Issue
Block a user