Remove autopatching setting

This commit is contained in:
Norbi Peti 2021-07-12 01:22:14 +02:00
parent b6ad8fd3ea
commit 1cb3c200a9
2 changed files with 1 additions and 16 deletions

View file

@ -34,7 +34,6 @@
this.browsebtn = new System.Windows.Forms.Button();
this.savebtn = new System.Windows.Forms.Button();
this.cancelbtn = new System.Windows.Forms.Button();
this.autopatching = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// label1
@ -93,16 +92,6 @@
this.cancelbtn.UseVisualStyleBackColor = true;
this.cancelbtn.Click += new System.EventHandler(this.cancelbtn_Click);
//
// autopatching
//
this.autopatching.AutoSize = true;
this.autopatching.Location = new System.Drawing.Point(12, 56);
this.autopatching.Name = "autopatching";
this.autopatching.Size = new System.Drawing.Size(194, 17);
this.autopatching.TabIndex = 6;
this.autopatching.Text = "Enable auto-patching on game start";
this.autopatching.UseVisualStyleBackColor = true;
//
// SettingsForm
//
this.AcceptButton = this.savebtn;
@ -111,7 +100,6 @@
this.BackColor = System.Drawing.Color.Black;
this.CancelButton = this.cancelbtn;
this.ClientSize = new System.Drawing.Size(439, 148);
this.Controls.Add(this.autopatching);
this.Controls.Add(this.cancelbtn);
this.Controls.Add(this.savebtn);
this.Controls.Add(this.browsebtn);
@ -139,7 +127,6 @@
private System.Windows.Forms.Button browsebtn;
private System.Windows.Forms.Button savebtn;
private System.Windows.Forms.Button cancelbtn;
private System.Windows.Forms.CheckBox autopatching;
}
}

View file

@ -6,7 +6,7 @@ namespace TBMM
public partial class SettingsForm : Form
{
private MainForm mainForm;
private bool autopatchingEnabled;
public SettingsForm()
{
InitializeComponent();
@ -16,8 +16,6 @@ namespace TBMM
{
mainForm = (MainForm) Owner;
gamelocation.Text = mainForm.Configuration.GamePath;
autopatchingEnabled = mainForm.Configuration.AutoPatch == AutoPatchingState.Enabled;
autopatching.Checked = autopatchingEnabled;
}
private void browsebtn_Click(object sender, EventArgs e)