Skip to content

Commit 548f2a7

Browse files
committed
Replace plot window on subsequent clicks
1 parent dcc78c7 commit 548f2a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ert/gui/main_window.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ def select_central_widget(self) -> None:
126126
)
127127
self.central_layout.addWidget(self._manage_experiments_panel)
128128

129-
if index_name == "Create plot" and not self._plot_window:
129+
if index_name == "Create plot":
130+
if self._plot_window:
131+
self._plot_window.close()
130132
self._plot_window = PlotWindow(self.config_file, self)
131133
self.central_layout.addWidget(self._plot_window)
132134
self.central_panels_map["Create plot"] = self._plot_window

0 commit comments

Comments
 (0)