mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
Add cancellation support to CompressedArchive (unarr).
This will let threads end quickly when a comic opening is interrupted.
This commit is contained in:
@ -93,6 +93,11 @@ void CompressedArchive::getAllData(const QVector<quint32> & indexes, ExtractDele
|
||||
int i=0;
|
||||
while (i < indexes.count())
|
||||
{
|
||||
if(delegate->isCancelled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//use the offset list so we generated so we're not getting any non-page files
|
||||
ar_parse_entry_at(ar, offsets.at(indexes.at(i))); //set ar_entry to start of indexes
|
||||
buffer.resize(ar_entry_get_size(ar));
|
||||
|
Reference in New Issue
Block a user