From 1d9b641f0aef25d075198590b9eae3329e050d7f Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Wed, 5 Jul 2023 20:06:56 +0200 Subject: [PATCH] closing Tg dialog is no longer export --- src/gui_qt/dsc/glass_dialog.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/gui_qt/dsc/glass_dialog.py b/src/gui_qt/dsc/glass_dialog.py index b1cb9ff..0862cf0 100644 --- a/src/gui_qt/dsc/glass_dialog.py +++ b/src/gui_qt/dsc/glass_dialog.py @@ -378,26 +378,4 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard): return super().close() def accept(self) -> None: - if self.new_graph_tau_check.isChecked(): - graph_id = '' - else: - graph_id = self.new_graph_tau_combo.currentData() - - ret_dic = {} - for key, tg in self._tg_value.items(): - tgx = [x for x, y in tg.values()] - tgy = [y for x, y in tg.values()] - if self.tg_export_check.isChecked(): - tg_pts = Points(x=tgx, y=tgy, name=self._management[key].name + ' (Tg)', value=self._management[key].value) - else: - tg_pts = None - - if self.tglines_export_check.isChecked(): - line = self._lines[key] - else: - line = [] - - ret_dic[key] = (tg_pts, line) - - self.newTg.emit(ret_dic, ret_dic2, graph_id) self.close()