small detail

This commit is contained in:
Bitl 2021-09-06 12:43:04 -07:00
parent cefb9a1efb
commit 254199e9c1
2 changed files with 13 additions and 0 deletions

View File

@ -111,6 +111,7 @@
this.URLOverrideBox.Size = new System.Drawing.Size(121, 20);
this.URLOverrideBox.TabIndex = 25;
this.URLOverrideBox.Click += new System.EventHandler(this.URLOverrideBox_Click);
this.URLOverrideBox.TextChanged += new System.EventHandler(this.URLOverrideBox_TextChanged);
//
// URLListLabel
//

View File

@ -266,6 +266,18 @@ public partial class AssetSDK : Form
hasOverrideWarningOpenedOnce = true;
}
}
private void URLOverrideBox_TextChanged(object sender, EventArgs e)
{
if (!string.IsNullOrWhiteSpace(URLOverrideBox.Text))
{
AssetDownloader_URLSelection.Enabled = false;
}
else
{
AssetDownloader_URLSelection.Enabled = true;
}
}
#endregion
#region Asset Localizer