do not open plot a second time if it is reset and already open
This commit is contained in:
@ -44,6 +44,9 @@ class MainWindow(QMainWindow):
|
||||
def new_plot(self, name, cfg):
|
||||
desc = PlotDescription(**cfg)
|
||||
self.lst.add(name, desc)
|
||||
for sub in self.mdi.subWindowList():
|
||||
if sub.windowTitle() == name:
|
||||
return
|
||||
self.sig_make_new_plot.emit(name, desc)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user