Hide custom uploader panel instead of disabling

This commit is contained in:
Jaex 2021-03-01 16:13:36 +03:00
parent da5b83d129
commit 4455162528
2 changed files with 3 additions and 3 deletions

View file

@ -161,7 +161,7 @@ private void CustomUploaderLoadSelected()
private void CustomUploaderLoad(CustomUploaderItem uploader)
{
txtName.Text = uploader.Name ?? "";
txtName.SetWatermark(URLHelpers.GetHostName(uploader.RequestURL));
txtName.SetWatermark(URLHelpers.GetHostName(uploader.RequestURL) ?? "");
CustomUploaderSetDestinationType(uploader.DestinationType);
cbRequestMethod.SelectedIndex = (int)uploader.RequestMethod;
@ -228,7 +228,7 @@ private void CustomUploaderLoad(CustomUploaderItem uploader)
private void CustomUploaderUpdateStates()
{
btnRemove.Enabled = btnDuplicate.Enabled = pMain.Enabled = CustomUploaderCheck(lbCustomUploaderList.SelectedIndex);
btnRemove.Enabled = btnDuplicate.Enabled = pMain.Visible = CustomUploaderCheck(lbCustomUploaderList.SelectedIndex);
tsmiExportAll.Enabled = tsmiClearUploaders.Enabled = cbImageUploader.Enabled =
btnImageUploaderTest.Enabled = cbTextUploader.Enabled = btnTextUploaderTest.Enabled =

View file

@ -457,7 +457,7 @@
<value>7</value>
</data>
<data name="lbCustomUploaderList.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
<value>Top, Bottom, Left</value>
</data>
<data name="lbCustomUploaderList.IntegralHeight" type="System.Boolean, mscorlib">
<value>False</value>