enthought / pyface

pyface: traits-capable windowing framework
Other
105 stars 55 forks source link

Workbench state not persisting in Mayavi #1117

Open corranwebster opened 2 years ago

corranwebster commented 2 years ago

Reports from the Mayavi team that state of perspectives is not being stored properly:

If you run mayavi2, for the first time, the default perspective is OK but if you close it and restart, or change it, or even create a new perspective, you get a terribly messed up perspective with the editor area being very tiny. Am happy to share a screenshot but this is almost trivial to reproduce. Just run mayavi2 with a qt backend twice on the terminal.

corranwebster commented 2 years ago

I can confirm the behaviour.

corranwebster commented 2 years ago

I am seeing QBytes objects in the memento state - possible issue there?

corranwebster commented 2 years ago

I think the core issue here may be that Mayavi doesn't implement an EditorManager, and so there is no code restoring the content or the editor tabs, and so they get squashed as they don't ask for any room.