Remove unused checkbox

Need to remove skiplang option from DS4Updater later.
All localization files are bundled with DS4Windows now
This commit is contained in:
Travis Nickles 2017-12-03 04:16:10 -06:00
parent 4322ca3215
commit db3cce0cf2
3 changed files with 2306 additions and 1706 deletions

View File

@ -137,7 +137,6 @@
this.cBCloseMini = new System.Windows.Forms.CheckBox();
this.cBQuickCharge = new System.Windows.Forms.CheckBox();
this.cBUseWhiteIcon = new System.Windows.Forms.CheckBox();
this.cBDownloadLangauge = new System.Windows.Forms.CheckBox();
this.cBUpdate = new System.Windows.Forms.CheckBox();
this.pNUpdate = new System.Windows.Forms.Panel();
this.cBUpdateTime = new System.Windows.Forms.ComboBox();
@ -890,7 +889,6 @@
this.fLPSettings.Controls.Add(this.cBCloseMini);
this.fLPSettings.Controls.Add(this.cBQuickCharge);
this.fLPSettings.Controls.Add(this.cBUseWhiteIcon);
this.fLPSettings.Controls.Add(this.cBDownloadLangauge);
this.fLPSettings.Controls.Add(this.cBUpdate);
this.fLPSettings.Controls.Add(this.pNUpdate);
this.fLPSettings.Controls.Add(this.pnlXIPorts);
@ -1055,15 +1053,6 @@
this.cBUseWhiteIcon.UseVisualStyleBackColor = true;
this.cBUseWhiteIcon.CheckedChanged += new System.EventHandler(this.cBUseWhiteIcon_CheckedChanged);
//
// cBDownloadLangauge
//
resources.ApplyResources(this.cBDownloadLangauge, "cBDownloadLangauge");
this.cBDownloadLangauge.Checked = true;
this.cBDownloadLangauge.CheckState = System.Windows.Forms.CheckState.Checked;
this.cBDownloadLangauge.Name = "cBDownloadLangauge";
this.cBDownloadLangauge.UseVisualStyleBackColor = true;
this.cBDownloadLangauge.CheckedChanged += new System.EventHandler(this.cBDownloadLangauge_CheckedChanged);
//
// cBUpdate
//
resources.ApplyResources(this.cBUpdate, "cBUpdate");
@ -1411,7 +1400,6 @@
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.Label lbNoControllers;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.CheckBox cBDownloadLangauge;
private System.Windows.Forms.CheckBox cBFlashWhenLate;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label lbNotifications;

View File

@ -234,11 +234,7 @@ namespace DS4Windows
startMinimizedCheckBox.Checked = StartMinimized;
startMinimizedCheckBox.CheckedChanged += startMinimizedCheckBox_CheckedChanged;
cBCloseMini.Checked = CloseMini;
string lang = CultureInfo.CurrentCulture.ToString();
if (lang.StartsWith("en"))
cBDownloadLangauge.Visible = false;
cBDownloadLangauge.Checked = DownloadLang;
cBFlashWhenLate.Checked = FlashWhenLate;
nUDLatency.Value = FlashWhenLateAt;
@ -756,8 +752,7 @@ namespace DS4Windows
Process p = new Process();
p.StartInfo.FileName = exepath + "\\DS4Updater.exe";
if (!cBDownloadLangauge.Checked)
p.StartInfo.Arguments = "-skipLang";
p.StartInfo.Arguments = "-skipLang";
if (AdminNeeded())
p.StartInfo.Verb = "runas";
@ -2067,9 +2062,7 @@ namespace DS4Windows
Process p = new Process();
p.StartInfo.FileName = exepath + "\\DS4Updater.exe";
if (!cBDownloadLangauge.Checked)
p.StartInfo.Arguments = "-skipLang";
p.StartInfo.Arguments = "-skipLang";
if (AdminNeeded())
p.StartInfo.Verb = "runas";
@ -2415,11 +2408,6 @@ namespace DS4Windows
}
}
private void cBDownloadLangauge_CheckedChanged(object sender, EventArgs e)
{
DownloadLang = cBDownloadLangauge.Checked;
}
private void linkCB_CheckedChanged(object sender, EventArgs e)
{
CheckBox linkCb = (CheckBox)sender;

File diff suppressed because it is too large Load Diff