emit update of changed graph titles (#259); close #257
Some checks failed
Build AppImage / Explore-Gitea-Actions (push) Has been cancelled

Co-authored-by: Dominik Demuth <dominik.demuth@physik.tu-darmstadt.de>
Reviewed-on: #259
This commit is contained in:
Dominik Demuth 2024-03-27 18:02:53 +00:00
parent 299bb043ea
commit 403273e0d7
2 changed files with 7 additions and 6 deletions

View File

@ -413,7 +413,7 @@ class QPreviewDialog(QtWidgets.QDialog, Ui_ApodEdit):
vb = self.time_graph.getPlotItem().getViewBox()
vb.disableAutoRange(axis=vb.YAxis)
if self._all_time is not None:
self.zerofill_box.setVisible(self._all_time)
self.apod_box.setVisible(self._all_time)
self.shift_box.setVisible(self._all_time)

View File

@ -428,6 +428,7 @@ class UpperManagement(QtCore.QObject):
self.graphs[d.graph].update_legend(identifier, name)
elif identifier in self.graphs:
self.graphs[identifier].title = name
self.graphs.valueChanged.emit()
else:
raise KeyError('Unknown ID ' + str(identifier))