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

Make Image Loading Asynchronous #12

Merged
merged 1 commit into from
Mar 15, 2018
Merged

Make Image Loading Asynchronous #12

merged 1 commit into from
Mar 15, 2018

Conversation

mmstick
Copy link
Member

@mmstick mmstick commented Mar 14, 2018

Image buffering now happens in a separate long-running thread in the background, which receives image paths to load from a Receiver, and sets the corresponding values within an atomic integer so that the state changes within the UI will know what's happening in the thread.

When an image is being loaded, the button will be hidden, and replaced with a spinner.

And the background color & box shadow within the left panel has been unset.

The library will also re-use a pre-existing Vec<u8>, truncating or extending it as required, rather than recreating a new one.

Closes #8
Closes #11

@jackpot51 jackpot51 merged commit 0b9f612 into pop-os:master Mar 15, 2018
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

2 participants