mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-05 20:54:31 +13:00
Changed function name
This commit is contained in:
parent
ae025adf46
commit
3c9f237471
1 changed files with 7 additions and 4 deletions
|
@ -53,27 +53,30 @@ public QRCodeForm(string text = null)
|
||||||
{
|
{
|
||||||
EditMode = true;
|
EditMode = true;
|
||||||
txtQRCode.Visible = true;
|
txtQRCode.Visible = true;
|
||||||
|
|
||||||
if (Clipboard.ContainsText())
|
if (Clipboard.ContainsText())
|
||||||
{
|
{
|
||||||
text = Clipboard.GetText();
|
text = Clipboard.GetText();
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(text) && URLHelpers.IsValidURLRegex(text))
|
if (!string.IsNullOrEmpty(text) && URLHelpers.IsValidURLRegex(text))
|
||||||
{
|
{
|
||||||
txtQRCode.Text = text;
|
txtQRCode.Text = text;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
default_Text();
|
SetDefaultText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
default_Text();
|
SetDefaultText();
|
||||||
}
|
}
|
||||||
|
|
||||||
txtQRCode.SelectAll();
|
txtQRCode.SelectAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void default_Text()
|
private void SetDefaultText()
|
||||||
{
|
{
|
||||||
txtQRCode.Text = "Input text to convert";
|
txtQRCode.Text = "Input text to convert";
|
||||||
}
|
}
|
||||||
|
@ -158,4 +161,4 @@ private void tsmiSaveAs_Click(object sender, EventArgs e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue