From 3074675da4f3cf27544c8241fe674ae87b73468c Mon Sep 17 00:00:00 2001 From: Curtis Rueden Date: Tue, 16 Jul 2024 10:14:59 -0500 Subject: [PATCH] If UI is already created, don't createUI() again --- src/main/java/org/scijava/ui/AbstractUserInterface.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/scijava/ui/AbstractUserInterface.java b/src/main/java/org/scijava/ui/AbstractUserInterface.java index fd9cc24d1..a3894158b 100644 --- a/src/main/java/org/scijava/ui/AbstractUserInterface.java +++ b/src/main/java/org/scijava/ui/AbstractUserInterface.java @@ -79,6 +79,7 @@ public abstract class AbstractUserInterface extends AbstractRichPlugin @Override public void show() { + if (visible) return; createUI(); visible = true; }