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

Performing indentation in a separate thread #17

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

Conversation

jgorinsky
Copy link

Indenting large files was locking up the UI thread, so I moved the function to a separate thread class and added a little status message while it's processing.

@alek-sys
Copy link
Owner

alek-sys commented Jan 5, 2013

Thanks for code! Won't it create any problems with accessing UI from background thread? I will do some smoke test and merge it a bit later

@jgorinsky
Copy link
Author

No prob. Hope it works for you.

The UI changes are still happening in the UI thread. It's just processing the indents in the separate thread. I think it will complain if the UI is accessed from a background thread.

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