From d234d93e6a997ec43e6f7db03440a63b98d9a5fa Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Fri, 22 Nov 2024 12:38:07 +0100 Subject: [PATCH] keep improving --- src/main/java/ai/nets/samj/ij/ui/Consumer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/ai/nets/samj/ij/ui/Consumer.java b/src/main/java/ai/nets/samj/ij/ui/Consumer.java index 3f9ffd8..ed0bd5f 100644 --- a/src/main/java/ai/nets/samj/ij/ui/Consumer.java +++ b/src/main/java/ai/nets/samj/ij/ui/Consumer.java @@ -205,6 +205,9 @@ public void windowClosed(WindowEvent e) { roiManager.close(); this.selectedModel.closeProcess(); this.selectedModel = null; + this.activeImage = null; + this.activeCanvas = null; + this.activeWindow = null; this.deactivateListeners(); }