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

Add disabled undo & redo buttons for when there is nothing to undo/redo #256

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SamTheBlow
Copy link

When there is nothing to undo, the undo button grays out. When there is nothing to redo, the redo button grays out.
The buttons are updated correctly when creating a new file or when going to a different tab.

This is only a visual change. Hovering over the buttons still shows a hint, and clicking on them still makes them do their thing.

Note: this does not behave as expected when the user zooms in/out. For some reason, zooming in/out marks a project as "dirty", which enables the undo button as a result. I've decided to ignore this because zooming in/out shouldn't mark a project as "dirty" in the first place (please correct me if I'm wrong)

Also, I know this project is currently being updated to Godot 4: I don't mind waiting and rewriting the PR after that's done.
(This is kinda my first PR, sorry if I screwed something up)

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

Successfully merging this pull request may close these issues.

None yet

1 participant