Commit 6b8b1b8e authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Geometry: Fix update.

Showing with 13 additions and 10 deletions
+13 -10
......@@ -205,16 +205,19 @@ class GeometryWindow(PamhyrWindow):
.selectionChanged\
.connect(self.select_current_profile)
self._table.layoutChanged.connect(self.update)
self._table.layoutChanged.connect(self.update_redraw)
def update(self):
self._update()
def _update(self, propagate=True):
self.update_profile_windows()
self.plot_xy()
self.plot_kpc()
self.plot_ac()
def update_redraw(self):
self._update(redraw=True)
def _update(self, redraw=False, propagate=True):
if redraw:
self._plot_xy.draw()
self._plot_kpc.draw()
self._plot_ac.draw()
self.select_current_profile()
self.changed_slider_value()
......@@ -318,10 +321,6 @@ class GeometryWindow(PamhyrWindow):
def changed_profile_slot(self, status):
self.update_view1 = status
def update_profile_windows(self):
self.list_second_window = []
self.list_row = []
def plot_xy(self):
self.tableView.model().blockSignals(True)
......@@ -422,6 +421,10 @@ class GeometryWindow(PamhyrWindow):
self.select_plot_xy(row)
self.select_plot_kpc(row)
self.select_plot_ac(row)
else:
self._plot_xy.draw()
self._plot_kpc.draw()
self._plot_ac.draw()
self.tableView.model().blockSignals(False)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment