diff --git a/designer-base/src/main/java/com/fr/design/login/DesignerLoginHelper.java b/designer-base/src/main/java/com/fr/design/login/DesignerLoginHelper.java index 93d7b1adf2..5da006fa76 100644 --- a/designer-base/src/main/java/com/fr/design/login/DesignerLoginHelper.java +++ b/designer-base/src/main/java/com/fr/design/login/DesignerLoginHelper.java @@ -68,12 +68,9 @@ public class DesignerLoginHelper { if (dialog == null) { if (window instanceof Dialog) { dialog = new DesignerLoginShowDialog((Dialog) window, designerLoginPane); - } else if (window instanceof Frame) { - dialog = new DesignerLoginShowDialog((Frame) window, designerLoginPane); } else { - return; + dialog = new DesignerLoginShowDialog((Frame) window, designerLoginPane); } - } dialog.setVisible(true); }