1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +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) void CopyText(bool cut)
{
if (!CheckReadOnly())
{ {
bool selectedLine = false; bool selectedLine = false;
String extra = scope .(); String extra = scope .();
@ -2018,7 +2016,7 @@ namespace Beefy.widgets
String selText = scope String(); String selText = scope String();
GetSelectionText(selText); GetSelectionText(selText);
BFApp.sApp.SetClipboardText(selText, extra); BFApp.sApp.SetClipboardText(selText, extra);
if (cut) if ((cut) && (!CheckReadOnly()))
{ {
if (selectedLine) if (selectedLine)
{ {
@ -2032,7 +2030,6 @@ namespace Beefy.widgets
if (selectedLine) if (selectedLine)
mSelection = null; mSelection = null;
} }
}
public void CutText() public void CutText()
{ {