Use proper custom uploader name

This commit is contained in:
Jaex 2018-01-29 12:02:34 +03:00
parent d52f2c66e0
commit 872daed5c2
3 changed files with 3 additions and 8 deletions

View file

@ -89,11 +89,6 @@ public CustomUploaderItem()
{
}
public CustomUploaderItem(string name)
{
Name = name;
}
public override string ToString()
{
if (!string.IsNullOrEmpty(Name))

View file

@ -260,7 +260,7 @@ private string GetCustomUploaderName(int index, TaskSettings taskSettings)
if (cui != null)
{
return cui.Name;
return cui.ToString();
}
return null;

View file

@ -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)