diff --git a/src/View/Frictions/Window.py b/src/View/Frictions/Window.py index b6dd6afaec0e4f7244d2b404478da8ecc172ebbd..95b41d8b3c19a032a69d9465d63c89ac24d8644b 100644 --- a/src/View/Frictions/Window.py +++ b/src/View/Frictions/Window.py @@ -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()