mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Additional image files check after download
This commit is contained in:
parent
f670de09d9
commit
9f0772fb65
1 changed files with 5 additions and 0 deletions
|
@ -117,6 +117,11 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
|
||||||
instance.uiDialog.showDialog();
|
instance.uiDialog.showDialog();
|
||||||
instance.uiDialog.dispose();
|
instance.uiDialog.dispose();
|
||||||
instance.setNeedCancel(true);
|
instance.setNeedCancel(true);
|
||||||
|
|
||||||
|
// IMAGES CHECK (download process can broke some files, so fix it here too)
|
||||||
|
// code executes on cancel/close download dialog (but not executes on app's close -- it's ok)
|
||||||
|
logger.info("Images: search broken files...");
|
||||||
|
CardImageUtils.checkAndFixImageFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isNeedCancel() {
|
public boolean isNeedCancel() {
|
||||||
|
|
Loading…
Reference in a new issue