1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed copy text in read-only panels

This commit is contained in:
Brian Fiete 2020-08-31 13:15:59 -07:00
parent 76a8f2d7bb
commit f008a98105

View file

@ -2002,8 +2002,6 @@ namespace Beefy.widgets
}
void CopyText(bool cut)
{
if (!CheckReadOnly())
{
bool selectedLine = false;
String extra = scope .();
@ -2018,7 +2016,7 @@ namespace Beefy.widgets
String selText = scope String();
GetSelectionText(selText);
BFApp.sApp.SetClipboardText(selText, extra);
if (cut)
if ((cut) && (!CheckReadOnly()))
{
if (selectedLine)
{
@ -2032,7 +2030,6 @@ namespace Beefy.widgets
if (selectedLine)
mSelection = null;
}
}
public void CutText()
{