mirror of
https://github.com/AntinomyCollective/Retime-Phoneme-Util-GUI.git
synced 2025-07-04 08:19:27 +03:00
Fix 'clean copy' handling
This commit is contained in:
parent
000000001d
commit
000000009e
@ -43,7 +43,8 @@ public partial class FrmMain : Form
|
|||||||
var enabled = !string.IsNullOrWhiteSpace(this.txtInput.Text)
|
var enabled = !string.IsNullOrWhiteSpace(this.txtInput.Text)
|
||||||
&& !string.IsNullOrWhiteSpace(this.txtOutput.Text)
|
&& !string.IsNullOrWhiteSpace(this.txtOutput.Text)
|
||||||
&& Directory.Exists(this.txtInput.Text)
|
&& Directory.Exists(this.txtInput.Text)
|
||||||
&& Directory.Exists(this.txtOutput.Text);
|
&& Directory.Exists(this.txtOutput.Text)
|
||||||
|
&& (!this.chkClean.Checked || (!string.IsNullOrWhiteSpace(this.txtOutputClean.Text) && Directory.Exists(this.txtOutputClean.Text)));
|
||||||
this.btnSave.Enabled = this.btnStart.Enabled = enabled;
|
this.btnSave.Enabled = this.btnStart.Enabled = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +106,11 @@ public partial class FrmMain : Form
|
|||||||
this.Text = $"{name} {version} ({BitnessProvider.BitnessName})";
|
this.Text = $"{name} {version} ({BitnessProvider.BitnessName})";
|
||||||
}
|
}
|
||||||
|
|
||||||
private void chkClean_CheckedChanged(object sender, EventArgs e) => this.txtOutputClean.Enabled = this.btnBrowseOutputClean.Enabled = this.chkClean.Checked;
|
private void chkClean_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.txtOutputClean.Enabled = this.btnBrowseOutputClean.Enabled = this.chkClean.Checked;
|
||||||
|
this.EnableButtons();
|
||||||
|
}
|
||||||
|
|
||||||
private void buttonAbout_Click(object sender, EventArgs e)
|
private void buttonAbout_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user