replot legend if set is hidden

This commit is contained in:
Dominik Demuth 2023-12-18 17:46:32 +01:00
parent 9815c0df40
commit 555831380d

View File

@ -304,6 +304,8 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow):
if item in self.graphic.items():
self.graphic.removeItem(item)
self.show_legend()
@QtCore.pyqtSlot(bool, name='on_imag_button_toggled')
@QtCore.pyqtSlot(bool, name='on_real_button_toggled')
def set_imag_visible(self, visible: bool):