mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Hide custom uploader panel instead of disabling
This commit is contained in:
parent
da5b83d129
commit
4455162528
2 changed files with 3 additions and 3 deletions
|
@ -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 =
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue