work between tasks of workgroup but fails otherwise

This commit is contained in:
buenosairesam
2025-05-13 08:29:26 -03:00
parent 58fecc79c0
commit a3e3e6a565
2 changed files with 11 additions and 30 deletions

View File

@@ -92,9 +92,13 @@ while True:
# if current_task in work_task_ids and current_task != current_work_task:
if current_task not in work_task_ids:
current_task = current_work_task
state.save("current", task=current_task)
task.db_to_file_as_is(None)
# Enforce work task if current task is not in workspace
if current_task != current_work_task:
current_task = current_work_task
state.save("current", task=current_task)
task.db_to_file_as_is(None)
elif current_task != current_work_task:
# Update work state when switching to a different valid task
state.update_work_state(work_desktops[current_workspace], current_task)
# regular flow