Skip to content

Performing indentation in a separate thread#17

Open
jgorinsky wants to merge 1 commit into
alek-sys:masterfrom
jgorinsky:master
Open

Performing indentation in a separate thread#17
jgorinsky wants to merge 1 commit into
alek-sys:masterfrom
jgorinsky:master

Conversation

@jgorinsky
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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