Skip to content

Commit fac120f

Browse files
committed
check whether job could be cancelled was all wrong
1 parent 7ae8d4e commit fac120f

File tree

1 file changed

+1
-1
lines changed
  • src/gazeMapper/GUI/_impl

1 file changed

+1
-1
lines changed

src/gazeMapper/GUI/_impl/gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ def _session_context_menu(self, session_name: str) -> bool:
16101610
if imgui.selectable(ifa6.ICON_FA_TRASH_CAN + " Delete session", False)[0]:
16111611
for s in sess:
16121612
# if any import actions are happening, cancel those first
1613-
for r in (r for r in s.recordings if s.recordings[r].state[process.Action.IMPORT]):
1613+
for r in (r for r in s.recordings if s.name in actions_running and process.Action.IMPORT in actions_running[s.name] and r in actions_running[s.name][process.Action.IMPORT]):
16141614
self.job_scheduler.cancel_job(actions_running[s.name][process.Action.IMPORT][r])
16151615
callbacks.remove_folder(s.working_directory)
16161616
changed = True

0 commit comments

Comments
 (0)