From: Niki Roo Date: Sat, 16 Mar 2019 19:27:24 +0000 (+0100) Subject: improve perf for getCover X-Git-Tag: fanfix-swing-0.0.1~12^2~246 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=3ab45a6ee3c92838219322e77a7e3d1c6c1fd17a;p=fanfix-swing.git improve perf for getCover --- diff --git a/src/be/nikiroo/fanfix/library/LocalLibrary.java b/src/be/nikiroo/fanfix/library/LocalLibrary.java index 50f9ac01..93bf7ba2 100644 --- a/src/be/nikiroo/fanfix/library/LocalLibrary.java +++ b/src/be/nikiroo/fanfix/library/LocalLibrary.java @@ -123,6 +123,10 @@ public class LocalLibrary extends BasicLibrary { public Image getCover(String luid) { MetaData meta = getInfo(luid); if (meta != null) { + if (meta.getCover() != null) { + return meta.getCover(); + } + File[] files = getStories(null).get(meta); if (files != null) { File infoFile = files[0];