Profiles: keep security to not open the same profile twice

This commit is contained in:
JeaDylan committed 2026-08-20 23:22:06 +02:00
1 parent 587e5412d5
commit 776d9ab610
1 file changed
+2 -1
+2 -1
View File
@@ -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)