Skip to content

Commit ac06b2a

Browse files
committed
FIX: do not be more aggressive about cleanup on 'q' that close
We were more aggressively cleaning up the Figure via the 'q' hot key than via closing via Window Manager UI.
1 parent 8e53cab commit ac06b2a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

mpl_gui/_promotion.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,6 @@ def _destroy(event):
8787
mgr._destroy_cid = None
8888
# close the window
8989
mgr.destroy()
90-
# disconnect the manager from the canvas
91-
fig.canvas.manager = None
92-
# reset the dpi
93-
fig.dpi = getattr(fig, "_original_dpi", fig.dpi)
94-
# Go back to "base" canvas
95-
# (this sets state on fig in the canvas init)
96-
FigureCanvasBase(fig)
9790

9891
manager._destroy_cid = fig.canvas.mpl_connect("key_press_event", _destroy)
9992

0 commit comments

Comments
 (0)