Moved GetConnectionIcons call from frmMain to Startup

This commit is contained in:
David Sparer
2016-05-22 10:48:29 -06:00
parent 268c5a92d8
commit 06ce840a8f
2 changed files with 2 additions and 3 deletions

View File

@@ -41,6 +41,7 @@ namespace mRemoteNG.App
//CheckCompatibility();
_singletonInstance.ParseCommandLineArgs();
IeBrowserEmulation.Register();
_singletonInstance.GetConnectionIcons();
}
private void CheckCompatibility()
@@ -126,7 +127,7 @@ namespace mRemoteNG.App
frmMain.Default.pnlDock.Visible = true;
}
public static void GetConnectionIcons()
private void GetConnectionIcons()
{
string iPath = (new Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase()).Info.DirectoryPath + "\\Icons\\";
if (Directory.Exists(iPath) == false)

View File

@@ -163,8 +163,6 @@ namespace mRemoteNG.UI.Forms
Runtime.MessageCollector = new MessageCollector(Windows.errorsForm);
Runtime.WindowList = new WindowList();
Startup.GetConnectionIcons();
Windows.treePanel.Focus();
ConnectionTree.TreeView = Windows.treeForm.tvConnections;