Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup in undo in TextEdit and LineEdit #86085

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

TheSofox
Copy link
Contributor

In both TextEdit and LineEdit, the Undo and Redo functions seemed to check for themselves whether there was an Undo/Redo available rather than using the existing has_undo or has_redo functions. I decided to make them use them to remove repetition.

Only exception was the TextEdit Undo function. I noticed its check for an Undo was slightly different from the has_undo function. I decided to leave it alone.

@akien-mga akien-mga modified the milestones: 4.x, 4.4 Nov 15, 2024
@Repiteo Repiteo merged commit af3fb0a into godotengine:master Nov 15, 2024
@Repiteo
Copy link
Contributor

Repiteo commented Nov 15, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants