fix: SettingForm TUNTAPDNS value init

fix: show starting tun2socks after setup route table
fix: a typo
This commit is contained in:
ChsBuffer
2020-10-27 12:14:10 +08:00
parent 52ac05ee17
commit bfadb181c4
3 changed files with 5 additions and 2 deletions

View File

@@ -68,6 +68,8 @@ namespace Netch.Controllers
SetupRouteTable();
Global.MainForm.StatusText(i18N.TranslateFormat("Starting {0}", Name));
string dns;
if (Global.Settings.TUNTAP.UseCustomDNS)
{

View File

@@ -927,7 +927,7 @@ namespace Netch.Forms
this.Name = "SettingForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Settings";
this.Load += new System.EventHandler(this.SettingForm2_Load);
this.Load += new System.EventHandler(this.SettingForm_Load);
this.TabControl.ResumeLayout(false);
this.GeneralTabPage.ResumeLayout(false);
this.GeneralTabPage.PerformLayout();

View File

@@ -20,8 +20,9 @@ namespace Netch.Forms
}
private void SettingForm2_Load(object sender, EventArgs e)
private void SettingForm_Load(object sender, EventArgs e)
{
TUNTAPUseCustomDNSCheckBox_CheckedChanged(null, null);
Task.Run(() => BeginInvoke(new Action(() => UseFakeDNSCheckBox.Visible = Global.Flags.SupportFakeDns)));
}