mirror of https://gitlab.com/pamhyr/pamhyr2
Profiles: keep security to not open the same profile twice
parent
587e5412d5
commit
776d9ab610
|
|
@ -287,13 +287,14 @@ class GeometryWindow(PamhyrWindow):
|
|||
|
||||
if self.sub_window_exists(
|
||||
ProfileWindow,
|
||||
data=[None, None, profile]
|
||||
data=[self._study, self._config, profile]
|
||||
):
|
||||
continue
|
||||
|
||||
win = ProfileWindow(
|
||||
profile=profile,
|
||||
study=self._study,
|
||||
config=self._config,
|
||||
parent=self,
|
||||
)
|
||||
self._profile_window.append(win)
|
||||
|
|
|
|||
Loading…
Reference in New Issue