mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
fixes #1329
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user