From 776d9ab6107446f3ca8b8b0f528add346581b4dd Mon Sep 17 00:00:00 2001 From: JeaDylan <101608960+JeaDylan@users.noreply.github.com> Date: Thu, 20 Aug 2026 23:22:06 +0200 Subject: [PATCH] Profiles: keep security to not open the same profile twice --- src/View/Geometry/Window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/View/Geometry/Window.py b/src/View/Geometry/Window.py index 4beffb58..19e84363 100644 --- a/src/View/Geometry/Window.py +++ b/src/View/Geometry/Window.py @@ -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)