aboutsummaryrefslogtreecommitdiffstats
path: root/solo-tool-project/src/solo_tool/solo_tool_controller.py
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-02-22 10:29:50 +0100
committerEddy Pedroni <epedroni@pm.me>2025-02-22 10:29:50 +0100
commitc990b0231c425743622368399aaf3b3b7231c481 (patch)
tree9716bcc6d03bb5f7e24ec9fd3ebaca758ac4f1fb /solo-tool-project/src/solo_tool/solo_tool_controller.py
parent86660e2498e17e51be77e41be4b53cf0c734f90b (diff)
Refactor to use properties for song list and current song
Diffstat (limited to 'solo-tool-project/src/solo_tool/solo_tool_controller.py')
-rw-r--r--solo-tool-project/src/solo_tool/solo_tool_controller.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/solo-tool-project/src/solo_tool/solo_tool_controller.py b/solo-tool-project/src/solo_tool/solo_tool_controller.py
index d283725..0529570 100644
--- a/solo-tool-project/src/solo_tool/solo_tool_controller.py
+++ b/solo-tool-project/src/solo_tool/solo_tool_controller.py
@@ -7,16 +7,16 @@ class SoloToolController:
self._soloTool = soloTool
def nextSong(self):
- current = self._soloTool.getCurrentSong()
+ current = self._soloTool.song
if current is None:
- self._soloTool.setSong(0)
+ self._soloTool.song = 0
else:
- self._soloTool.setSong(current + 1)
+ self._soloTool.song = current + 1
def previousSong(self):
- current = self._soloTool.getCurrentSong()
+ current = self._soloTool.song
if current is None:
- self._soloTool.setSong(0)
+ self._soloTool.song = 0
else:
- self._soloTool.setSong(current - 1)
+ self._soloTool.song = current - 1