mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Use proper custom uploader name
This commit is contained in:
parent
d52f2c66e0
commit
872daed5c2
3 changed files with 3 additions and 8 deletions
|
@ -89,11 +89,6 @@ public CustomUploaderItem()
|
|||
{
|
||||
}
|
||||
|
||||
public CustomUploaderItem(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(Name))
|
||||
|
|
|
@ -260,7 +260,7 @@ private string GetCustomUploaderName(int index, TaskSettings taskSettings)
|
|||
|
||||
if (cui != null)
|
||||
{
|
||||
return cui.Name;
|
||||
return cui.ToString();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
@ -1458,7 +1458,7 @@ public static void AddCustomUploader(string filePath)
|
|||
|
||||
if (cui.DestinationType == CustomUploaderDestinationType.None)
|
||||
{
|
||||
DialogResult result = MessageBox.Show($"Would you like to add \"{cui.Name}\" custom uploader?",
|
||||
DialogResult result = MessageBox.Show($"Would you like to add \"{cui.ToString()}\" custom uploader?",
|
||||
"ShareX - Custom uploader confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
|
||||
|
||||
if (result == DialogResult.No)
|
||||
|
@ -1477,7 +1477,7 @@ public static void AddCustomUploader(string filePath)
|
|||
|
||||
string destinationsText = string.Join("/", destinations);
|
||||
|
||||
DialogResult result = MessageBox.Show($"Would you like to set \"{cui.Name}\" as the active custom uploader for {destinationsText}?",
|
||||
DialogResult result = MessageBox.Show($"Would you like to set \"{cui.ToString()}\" as the active custom uploader for {destinationsText}?",
|
||||
"ShareX - Custom uploader confirmation", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
|
||||
|
||||
if (result == DialogResult.Yes)
|
||||
|
|
Loading…
Reference in a new issue