Merge pull request #724 from mRemoteNG/482_proposed_fix

Default connection password must be decrypted before first use
This commit is contained in:
David Sparer
2017-09-18 08:48:06 -05:00
committed by GitHub
2 changed files with 9 additions and 4 deletions

View File

@@ -42,8 +42,6 @@ namespace mRemoteNG.App
ParseCommandLineArgs();
IeBrowserEmulation.Register();
GetConnectionIcons();
DefaultConnectionInfo.Instance.LoadFrom(Settings.Default, a=>"ConDefault"+a);
DefaultConnectionInheritance.Instance.LoadFrom(Settings.Default, a=>"InhDefault"+a);
}
private static void GetConnectionIcons()

View File

@@ -187,8 +187,9 @@ namespace mRemoteNG.UI.Forms
// Create gui config load and save objects
var settingsLoader = new SettingsLoader(this);
settingsLoader.LoadSettings();
ApplyLanguage();
LoadDefaultConnectionInfo();
ApplyLanguage();
PopulateQuickConnectProtocolMenu();
ThemeManager.ThemeChanged += ApplyThemes;
ApplyThemes();
@@ -221,6 +222,12 @@ namespace mRemoteNG.UI.Forms
ConnectionTreeWindow = Windows.TreeForm;
}
private void LoadDefaultConnectionInfo()
{
DefaultConnectionInfo.Instance.LoadFrom(Settings.Default, a => "ConDefault" + a);
DefaultConnectionInheritance.Instance.LoadFrom(Settings.Default, a => "InhDefault" + a);
}
private void ApplyLanguage()
{
mMenFile.Text = Language.strMenuFile;