Closed freaker10k closed 1 year ago
In my code I have set FTB.Text = "a bunch of text"
When I load, it shows the text in the FTB as expected, yet if I use CTRL+Z it clears all of the text, with no way to get it back.
This is a problem because content risks being accidentally deleted.
Is there a way to prevent this?
Thank you
Update:
It appears that adding FTB.ClearUndo()
After the .Text is assigned solves the issue.
Could you close this issue since you have resolved it?
In my code I have set FTB.Text = "a bunch of text"
When I load, it shows the text in the FTB as expected, yet if I use CTRL+Z it clears all of the text, with no way to get it back.
This is a problem because content risks being accidentally deleted.
Is there a way to prevent this?
Thank you