Skip to content

Commit 8730835

Browse files
author
Bryan Lawrence
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents b5abc88 + f4f4665 commit 8730835

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

xconv2/ui/plot_view_controller.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,11 @@ def on_save_plot_button_clicked(self) -> None:
376376
if not file_path:
377377
return
378378

379-
if selected_filter == format_filters["svg"]:
380-
selected_ext = "svg"
381-
elif selected_filter == format_filters["pdf"]:
382-
selected_ext = "pdf"
383-
else:
384-
selected_ext = default_format
379+
selected_ext = default_format
380+
for ext, filt in format_filters.items():
381+
if selected_filter == filt:
382+
selected_ext = ext
383+
break
385384

386385
if not Path(file_path).suffix:
387386
file_path += f".{selected_ext}"

0 commit comments

Comments
 (0)