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(
|
if self.sub_window_exists(
|
||||||
ProfileWindow,
|
ProfileWindow,
|
||||||
data=[None, None, profile]
|
data=[self._study, self._config, profile]
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
win = ProfileWindow(
|
win = ProfileWindow(
|
||||||
profile=profile,
|
profile=profile,
|
||||||
study=self._study,
|
study=self._study,
|
||||||
|
config=self._config,
|
||||||
parent=self,
|
parent=self,
|
||||||
)
|
)
|
||||||
self._profile_window.append(win)
|
self._profile_window.append(win)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue