closing Tg dialog is no longer export

This commit is contained in:
Dominik Demuth 2023-07-05 20:06:56 +02:00
parent 46ca50845b
commit 1d9b641f0a

View File

@ -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()