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

fix: attempt to improve field rename issues with "n" shortcut #2075

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

iscle
Copy link
Contributor

@iscle iscle commented Dec 31, 2023

This is an attempt to fix the issues that sometimes arise when renaming functions or variables using the "n" shortcut as stated in issue #1440.

The reasoning behind the change: The instance creation of the RenameDialog was somehow affecting the UI thread and not allowing for the key release event to be dispatched. By running everything inside the invokeLater block, this might get fixed as it will execute after all previous tasks are finished. We now also only show the dialog after EVERYTHING is set up, not before.

Only time will tell if this is fixed, but I have not been able to trigger the issue after this change.

This is an attempt to fix the issues that sometimes arise when renaming functions or variables using the "n" shortcut as stated in issue skylot#1440.

The reasoning behind the change: The instance creation of the RenameDialog was somehow affecting the UI thread and not allowing for the key release event to be dispatched. By running everything inside the invokeLater block, this might get fixed as it will execute after all previous tasks are finished.
We now also only show the dialog after EVERYTHING is set up, not before.
@skylot skylot merged commit 23e643c into skylot:master Jan 5, 2024
5 checks passed
@skylot
Copy link
Owner

skylot commented Jan 5, 2024

@iscle indeed, using new update UI event should resolve issue. Thanks 👍

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.

2 participants