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()
|
||||
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue