Friction: Fix open stricker edit.

setup.py
Pierre-Antoine Rouby 2023-10-20 17:20:03 +02:00
parent e395f9f575
commit 0ae5c02ea0
1 changed files with 11 additions and 13 deletions

View File

@ -240,17 +240,15 @@ class FrictionsWindow(PamhyrWindow):
self._table.redo() self._table.redo()
def edit_stricklers(self): def edit_stricklers(self):
strick = self.sub_win_filter_first( if self.sub_window_exists(
"Stricklers", StricklersWindow,
contain=[] data=[self._study, self.parent.conf]
) ):
return
if strick is None: strick = StricklersWindow(
strick = StricklersWindow( study=self._study,
study=self._study, config=self.parent.conf,
config=self.parent.conf, parent=self
parent=self )
) strick.show()
strick.show()
else:
strick.activateWindow()