ComicViewer
ComicViewer copied to clipboard
Multi-archive support broken by async loader
The code suggests that multiple archives can be loaded, and then navigate between them. E.g. Alt+Home, Alt+End, Alt+PageDown, Alt+PageUp.
However, Alt+Home / Alt+End seem to be non-functional.
- Using file browser, select multiple ZIPs to load.
- Page up/down to nav within first archive.
- Alt+PageDown to go to second archive; page down a few times.
- Alt+Home should go to beginning of first archive.
Step 4 goes to beginning of 2d archive.
The async loader only loads files[0] "in the background".
Needs to load the remaining images from files[0], and the remaining archives, in the background.
Not quite sure how to deal with a scenario:
- User loads multiple archives
- Async is loading in the background
- User uses Alt+End (or whatever) to go to the end of the last archive, which isn't finished loading yet.
Consider bailing on the async loader if more than one archive loaded?