diff --git a/mRemoteV1/Tools/MiscTools.cs b/mRemoteV1/Tools/MiscTools.cs index 57d31df9..cf1ac14a 100644 --- a/mRemoteV1/Tools/MiscTools.cs +++ b/mRemoteV1/Tools/MiscTools.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ComponentModel; using System.Drawing; using System.Drawing.Imaging; @@ -8,7 +8,6 @@ using System.Security; using mRemoteNG.App; using mRemoteNG.Messages; using mRemoteNG.UI.Forms; -using mRemoteNG.UI.Window; using static System.String; namespace mRemoteNG.Tools @@ -40,6 +39,10 @@ namespace mRemoteNG.Tools public static Optional PasswordDialog(string passwordName = null, bool verify = true) { + var splash = FrmSplashScreen.getInstance(); + if (!splash.IsDisposed && splash.Visible) + splash.Close(); + var passwordForm = new PasswordForm(passwordName, verify); return passwordForm.GetKey(); }