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()
def edit_stricklers(self):
strick = self.sub_win_filter_first(
"Stricklers",
contain=[]
)
if self.sub_window_exists(
StricklersWindow,
data=[self._study, self.parent.conf]
):
return
if strick is None:
strick = StricklersWindow(
study=self._study,
config=self.parent.conf,
parent=self
)
strick.show()
else:
strick.activateWindow()
strick = StricklersWindow(
study=self._study,
config=self.parent.conf,
parent=self
)
strick.show()