Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb6e6a9

Browse files
committed
backend_gtk: don't hide FileChooserDialog; closes matplotlib#1530
Hiding the FileChooserDialog was pointless, because a new one is created each time the Save Figure button is clicked in the Toolbar. Hiding seems to have prevented the widget from being destroyed based on refcount, and this led to heavy access to the recently-used.xbel file with every subsequent keystroke.
1 parent 74b09c5 commit bb6e6a9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/matplotlib/backends/backend_gtk.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,6 @@ def get_filename_from_user (self):
10831083
filename = self.get_filename()
10841084
break
10851085

1086-
self.hide()
10871086
return filename, self.ext
10881087

10891088
class DialogLineprops:

0 commit comments

Comments
 (0)