use filter() instead of list()
[fanfix.git] / src / be / nikiroo / fanfix_swing / gui / BooksPanel.java
index 73de77e974d7e6e313489ffb3b17ba969c1540b5..8a882136e3803e856ea0bd9cc36f862dc9118a04 100644 (file)
@@ -129,7 +129,7 @@ public class BooksPanel extends ListenerPanel {
                        protected List<BookInfo> doInBackground() throws Exception {
                                List<BookInfo> bookInfos = new ArrayList<BookInfo>();
                                BasicLibrary lib = Instance.getInstance().getLibrary();
-                               for (MetaData meta : lib.getList(null).filter(sources, authors, tags)) {
+                               for (MetaData meta : lib.getList().filter(sources, authors, tags)) {
                                        bookInfos.add(BookInfo.fromMeta(lib, meta));
                                }
 
@@ -232,6 +232,7 @@ public class BooksPanel extends ListenerPanel {
 
                        @Override
                        public void invalidateCache() {
+                               // TODO: also reset the popup menu for sources/author
                                fireActionPerformed(INVALIDATE_CACHE);
                        }
                });