Skip to content

Commit 4763d32

Browse files
committed
Restore export dialog for Qt image exporter.
1 parent d90cbc1 commit 4763d32

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

glue_plotly/html_exporters/qt/image.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,9 @@ def activate(self):
8989
config.update(**ax)
9090
config["showlegend"] = len(layers) > 1
9191

92-
# worker = Worker(self._export_to_plotly, filename, checked_dictionary, config)
93-
# exp_dialog = export_dialog.ExportDialog(parent=self.viewer)
94-
# worker.result.connect(exp_dialog.close)
95-
# worker.error.connect(exp_dialog.close)
96-
# worker.start()
97-
# exp_dialog.exec_()
98-
99-
self._export_to_plotly(filename, checked_dictionary, config)
92+
worker = Worker(self._export_to_plotly, filename, checked_dictionary, config)
93+
exp_dialog = export_dialog.ExportDialog(parent=self.viewer)
94+
worker.result.connect(exp_dialog.close)
95+
worker.error.connect(exp_dialog.close)
96+
worker.start()
97+
exp_dialog.exec_()

0 commit comments

Comments
 (0)