Skip to content

Commit

Permalink
FIX: do not be more aggressive about cleanup on 'q' that close
Browse files Browse the repository at this point in the history
We were more aggressively cleaning up the Figure via the 'q' hot key than
via closing via Window Manager UI.
  • Loading branch information
tacaswell committed Nov 8, 2023
1 parent 8e53cab commit ac06b2a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mpl_gui/_promotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@ def _destroy(event):
mgr._destroy_cid = None
# close the window
mgr.destroy()
# disconnect the manager from the canvas
fig.canvas.manager = None
# reset the dpi
fig.dpi = getattr(fig, "_original_dpi", fig.dpi)
# Go back to "base" canvas
# (this sets state on fig in the canvas init)
FigureCanvasBase(fig)

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

Expand Down

0 comments on commit ac06b2a

Please sign in to comment.