mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Moved GetConnectionIcons call from frmMain to Startup
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user