auto task switch for work desktop (default)

This commit is contained in:
buenosairesam
2025-05-13 05:00:46 -03:00
parent 7995040c82
commit 7a75d1caae
5 changed files with 26 additions and 7 deletions

View File

@@ -64,9 +64,14 @@ while True:
last_doc = switches.find_one(sort=[("_id", -1)])
# work workflow
if current_workspace in work_desktops.keys():
pass
work_states = state.retrieve_work_state()
current_work_task = work_states[work_desktops[current_workspace]]
logger.debug(f"current_work_task: {current_work_task}")
if current_task != current_work_task:
state.save("current", task=current_work_task)
task.db_to_file_as_is(None)
current_task = current_work_task
# regular flow
if (