This commit is contained in:
David Sparer
2019-02-25 13:59:52 -06:00
parent 3cb9bf984b
commit 5c5daf053b

View File

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