Skip to content

Commit

Permalink
User app failing in record playing due to incorrect recording argument
Browse files Browse the repository at this point in the history
Changed order in tray.py
  • Loading branch information
shashank40 committed Jun 19, 2024
1 parent b090920 commit 30863c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openadapt/app/tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _visualize(self, recording: Recording) -> None:
if self.visualize_proc is not None:
self.visualize_proc.kill()
self.visualize_proc = multiprocessing.Process(
target=visualize, args=(recording.id,)
target=visualize, args=(recording,)
)
self.visualize_proc.start()

Expand Down Expand Up @@ -449,7 +449,7 @@ def populate_menu(self, menu: QMenu, action: Callable, action_type: str) -> None
menu.addAction(no_recordings_action)
self.recording_actions[action_type].append(no_recordings_action)
else:
for idx, recording in enumerate(recordings):
for recording in recordings:
formatted_timestamp = datetime.fromtimestamp(
recording.timestamp
).strftime("%Y-%m-%d %H:%M:%S")
Expand Down

0 comments on commit 30863c5

Please sign in to comment.