File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
doc/api/next_api_changes/behavior Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ If a backend implements this functionality it should return `None` in the case w
7
7
figure is actually saved (because the user closed the dialog without saving).
8
8
9
9
If the backend does not or can not implement this functionality (currently the Gtk4 backends
10
- and webagg backends do not) this this method will return `NavigationToolbar2.UNKNOWN_SAVED_STATUS `.
10
+ and webagg backends do not) this this method will return `` NavigationToolbar2.UNKNOWN_SAVED_STATUS ` `.
Original file line number Diff line number Diff line change @@ -867,7 +867,7 @@ def save_figure(self, *args):
867
867
)
868
868
869
869
if fname in ["" , ()]:
870
- return self . FILE_NOT_SAVED
870
+ return
871
871
# Save dir for next time, unless empty str (i.e., use cwd).
872
872
if initialdir != "" :
873
873
mpl .rcParams ['savefig.directory' ] = (
You can’t perform that action at this time.
0 commit comments