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;
|
||||
txtQRCode.Visible = true;
|
||||
|
||||
if (Clipboard.ContainsText())
|
||||
{
|
||||
text = Clipboard.GetText();
|
||||
|
||||
if (!string.IsNullOrEmpty(text) && URLHelpers.IsValidURLRegex(text))
|
||||
{
|
||||
txtQRCode.Text = text;
|
||||
}
|
||||
else
|
||||
{
|
||||
default_Text();
|
||||
SetDefaultText();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
default_Text();
|
||||
SetDefaultText();
|
||||
}
|
||||
|
||||
txtQRCode.SelectAll();
|
||||
}
|
||||
}
|
||||
|
||||
private void default_Text()
|
||||
private void SetDefaultText()
|
||||
{
|
||||
txtQRCode.Text = "Input text to convert";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue