diff --git a/Netch/Forms/MainForm.Designer.cs b/Netch/Forms/MainForm.Designer.cs index 01f7523e..7b9b5d72 100644 --- a/Netch/Forms/MainForm.Designer.cs +++ b/Netch/Forms/MainForm.Designer.cs @@ -718,7 +718,6 @@ namespace Netch.Forms this.Text = "Netch"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); this.Load += new System.EventHandler(this.MainForm_Load); - this.VisibleChanged += new System.EventHandler(this.MainForm_VisibleChanged); this.MenuStrip.ResumeLayout(false); this.MenuStrip.PerformLayout(); this.ConfigurationGroupBox.ResumeLayout(false); diff --git a/Netch/Forms/MainForm.cs b/Netch/Forms/MainForm.cs index 34855936..8b1c784b 100644 --- a/Netch/Forms/MainForm.cs +++ b/Netch/Forms/MainForm.cs @@ -144,14 +144,6 @@ namespace Netch.Forms { Hide(); new SettingForm().ShowDialog(); - Show(); - } - - - private void MainForm_VisibleChanged(object sender, EventArgs e) - { - if (!Visible) - return; if (i18N.LangCode != Global.Settings.Language) { @@ -162,6 +154,8 @@ namespace Netch.Forms if (ProfileButtons.Count != Global.Settings.ProfileCount) InitProfile(); + + Show(); } private void InitText()