mirror of https://gitlab.com/pamhyr/pamhyr2
Friction: Fix open stricker edit.
parent
e395f9f575
commit
0ae5c02ea0
|
|
@ -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()
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue