Friction: Fix open stricker edit.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-10-20 17:20:03 +02:00
1 parent e395f9f575
commit 0ae5c02ea0
1 file changed
+5 -7
+5 -7
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()