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

Prevent UI flicker on conversation switch / update #216

Merged
merged 14 commits into from
Jan 10, 2019
Merged

Conversation

heartsucker
Copy link
Contributor

@heartsucker heartsucker commented Dec 20, 2018

Fixes #185

This fixes the problem of the UI flickering every time there is a API sync or message-download-decrypt sync. This is done by caching the conversation views and swapping between them instead of dropping and recreating them.

(Also I updated some of the code and tests to try to logically separate code blocks to avoid walls of text because I found it hard to read some times)

Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heyy one comment inline - let me know if I've misunderstood what you're working towards here

securedrop_client/gui/main.py Show resolved Hide resolved
Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent, thanks for rapid fixes, approving 🚀

@redshiftzero redshiftzero merged commit 76b86e0 into master Jan 10, 2019
@redshiftzero redshiftzero deleted the no-flicker branch January 10, 2019 17:22
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.

The entire UI flickers every time there is an API sync
2 participants