mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Fix update.
This commit is contained in:
1 parent
c3c5802be2
commit
6b8b1b8e1e
1 file changed
+13
-10
+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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user