From 92f4a4be02ab564bff531ecba3fc3a4261f8289e Mon Sep 17 00:00:00 2001 From: Odei Maiz Date: Fri, 19 Apr 2024 10:40:44 +0200 Subject: [PATCH 1/2] Do not close --- .../client/source/class/osparc/utils/Utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/static-webserver/client/source/class/osparc/utils/Utils.js b/services/static-webserver/client/source/class/osparc/utils/Utils.js index 8a331e2d99f..1db44ccd18a 100644 --- a/services/static-webserver/client/source/class/osparc/utils/Utils.js +++ b/services/static-webserver/client/source/class/osparc/utils/Utils.js @@ -921,7 +921,10 @@ qx.Class.define("osparc.utils.Utils", { children.forEach(child => { const isWindow = "modal" in qx.util.PropertyUtil.getAllProperties(child.constructor); if (isWindow) { - child.close(); + // Do not call close, it will trigger the close signal and it might not be handled correctly + // child.close(); + child.hide(); + child.dispose(); } }); }, From f06ea1496b7505173e0fc72496cd7d8096bee6d5 Mon Sep 17 00:00:00 2001 From: Odei Maiz Date: Fri, 19 Apr 2024 10:54:38 +0200 Subject: [PATCH 2/2] minor --- .../static-webserver/client/source/class/osparc/utils/Utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/static-webserver/client/source/class/osparc/utils/Utils.js b/services/static-webserver/client/source/class/osparc/utils/Utils.js index 1db44ccd18a..ae87a278142 100644 --- a/services/static-webserver/client/source/class/osparc/utils/Utils.js +++ b/services/static-webserver/client/source/class/osparc/utils/Utils.js @@ -921,8 +921,7 @@ qx.Class.define("osparc.utils.Utils", { children.forEach(child => { const isWindow = "modal" in qx.util.PropertyUtil.getAllProperties(child.constructor); if (isWindow) { - // Do not call close, it will trigger the close signal and it might not be handled correctly - // child.close(); + // Do not call .close(), it will trigger the close signal and it might not be handled correctly child.hide(); child.dispose(); }