Don't enum & add hosts until controls are properly created & available

This commit is contained in:
baldurk
2016-09-14 12:06:19 +02:00
parent b36fe219d9
commit 2736716aa1
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -316,6 +316,7 @@
this.MaximizeBox = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Remote Host Manager";
this.Load += new System.EventHandler(this.RemoteManager_Load);
tableLayoutPanel1.ResumeLayout(false);
basicConfigBox.ResumeLayout(false);
basicConfigBox.PerformLayout();
@@ -114,7 +114,10 @@ namespace renderdocui.Windows.Dialogs
m_Core = core;
m_Main = main;
}
private void RemoteManager_Load(object sender, EventArgs e)
{
hosts.BeginInit();
foreach (var h in m_Core.Config.RemoteHosts)