daisy / pipeline-ui

A user interface for the DAISY Pipeline 2
MIT License
5 stars 2 forks source link

Difficulty reopening the window using the tray when job is running #97

Closed bertfrees closed 1 year ago

bertfrees commented 1 year ago

This is on macOS. After I launch a job and then close the window with the running job tab, I have difficulty reopening the window using the tray menu. The menu automatically closes again, usually before I can select "New job". After some time it works normally again. Presumably this is when the job is finished.

NPavie commented 1 year ago

If i understand : when you have a job running and you close the window, every time you open the contextual menu of the app tray, it closes within a second ?

I'm thinking it might be due to the job monitoring that is updating the store, and the tray is set to update if the pipeline/app states change. I'll change this to request tray menu update only on pipeline status change instead of pipeline state change.

On windows this does not happen but i think that on windows when you open the contextual menu it is "freezed" so it is not updated until closing and reopening it.

bertfrees commented 1 year ago

when you have a job running and you close the window, every time you open the contextual menu of the app tray, it closes within a second ?

Indeed.

marisademeglio commented 1 year ago

This fix works for me