From 9b4304f0163c2351ddc1e27ae59a6943d4575402 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Tue, 25 Aug 2020 05:01:43 +0800 Subject: [PATCH] =?UTF-8?q?MainForm=5FVisibleChanged=20=E7=A7=BB=E8=87=B3?= =?UTF-8?q?=20SettingForm=20=E5=85=B3=E9=97=AD=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Netch/Forms/MainForm.Designer.cs | 1 - Netch/Forms/MainForm.cs | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) 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()