Skip to content

Commit 4e285db

Browse files
committed
RocketTimer should start in paused state
1 parent 5d04a84 commit 4e285db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

demosys/timers/rocket.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ def __init__(self, **kwargs):
1616
self.mode = config.get('mode') or 'editor'
1717
self.files = config.get('files') or './tracks'
1818
self.project = config.get('project') or 'project.xml'
19+
self.start_paused = False
1920

2021
self.controller = TimeController(config.get('rps', 24))
2122
if self.mode == 'editor':
2223
self.rocket = Rocket.from_socket(self.controller, track_path=self.files)
24+
self.start_paused = True
2325
elif self.mode == 'project':
2426
self.rocket = Rocket.from_project_file(self.controller, self.project)
2527
elif self.mode == 'files':
@@ -41,7 +43,8 @@ def __init__(self, **kwargs):
4143

4244
def start(self):
4345
"""Start the timer"""
44-
self.rocket.start()
46+
if not self.start_paused:
47+
self.rocket.start()
4548

4649
def get_time(self):
4750
"""Get the current time in seconds"""

0 commit comments

Comments
 (0)