Skip to content

Commit

Permalink
Replace plot window on subsequent clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Oct 25, 2024
1 parent 1a6719b commit dd92fe1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ert/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def select_central_widget(self) -> None:
)
self.central_layout.addWidget(self._manage_experiments_panel)

if index_name == "Create plot" and not self._plot_window:
if index_name == "Create plot":
if self._plot_window:
self._plot_window.close()
self._plot_window = PlotWindow(self.config_file, self)
self.central_layout.addWidget(self._plot_window)
self.central_panels_map["Create plot"] = self._plot_window
Expand Down

0 comments on commit dd92fe1

Please sign in to comment.