mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
rearranged program init to ensure ConDefaultPassword is decrypted before assignment to DefaultConnectionInfo object
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user