mirror of https://github.com/quasar/Quasar.git
Fixed building Client with empty hosts list
This commit is contained in:
parent
a714178604
commit
21fb90e559
|
@ -210,13 +210,23 @@ namespace xServer.Forms
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
private bool CheckInput()
|
||||||
|
{
|
||||||
|
return (!string.IsNullOrEmpty(txtTag.Text) && !string.IsNullOrEmpty(txtMutex.Text) && // General Settings
|
||||||
|
_hosts.Count > 0 && !string.IsNullOrEmpty(txtPassword.Text) && !string.IsNullOrEmpty(txtDelay.Text) && // Connection
|
||||||
|
(!chkInstall.Checked || (chkInstall.Checked && !string.IsNullOrEmpty(txtInstallname.Text))) && // Installation
|
||||||
|
(!chkStartup.Checked || (chkStartup.Checked && !string.IsNullOrEmpty(txtRegistryKeyName.Text)))); // Installation
|
||||||
|
}
|
||||||
|
|
||||||
private void btnBuild_Click(object sender, EventArgs e)
|
private void btnBuild_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(txtTag.Text) && !string.IsNullOrEmpty(txtMutex.Text) && // General Settings
|
if (!CheckInput())
|
||||||
_hosts.Count > 0 && !string.IsNullOrEmpty(txtPassword.Text) && !string.IsNullOrEmpty(txtDelay.Text) && // Connection
|
|
||||||
!chkInstall.Checked || (chkInstall.Checked && !string.IsNullOrEmpty(txtInstallname.Text)) && // Installation
|
|
||||||
!chkStartup.Checked || (chkStartup.Checked && !string.IsNullOrEmpty(txtRegistryKeyName.Text))) // Installation
|
|
||||||
{
|
{
|
||||||
|
MessageBox.Show("Please fill out all required fields!", "Build failed", MessageBoxButtons.OK,
|
||||||
|
MessageBoxIcon.Information);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
string output = string.Empty;
|
string output = string.Empty;
|
||||||
string icon = string.Empty;
|
string icon = string.Empty;
|
||||||
string password = txtPassword.Text;
|
string password = txtPassword.Text;
|
||||||
|
@ -306,10 +316,6 @@ namespace xServer.Forms
|
||||||
ex.StackTrace), "Build failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
ex.StackTrace), "Build failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
MessageBox.Show("Please fill out all required fields!", "Build failed", MessageBoxButtons.OK,
|
|
||||||
MessageBoxIcon.Information);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RefreshExamplePath()
|
private void RefreshExamplePath()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue