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(); }