From 6c3895d7bfbb8a60f9955d8b6bbd12a4aeac123e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 21 Mar 2016 08:03:11 +0000 Subject: [PATCH] Refactor --- source/net/filebot/ui/episodelist/EpisodeListPanel.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/net/filebot/ui/episodelist/EpisodeListPanel.java b/source/net/filebot/ui/episodelist/EpisodeListPanel.java index 63456ea0..c5d33c57 100644 --- a/source/net/filebot/ui/episodelist/EpisodeListPanel.java +++ b/source/net/filebot/ui/episodelist/EpisodeListPanel.java @@ -242,8 +242,9 @@ public class EpisodeListPanel extends AbstractSearchPanel SwingEventBus.getInstance().post(EpisodeListExportHandler.export(this, false))); + invokeLater(200, () -> SwingEventBus.getInstance().post(exportHandler.export(this, false))); })); } @@ -300,7 +301,7 @@ public class EpisodeListPanel extends AbstractSearchPanel export(FileBotList list, boolean forceAll) { + public ArrayTransferable export(FileBotList list, boolean forceAll) { Episode[] selection = ((List) list.getListComponent().getSelectedValuesList()).stream().map(Episode.class::cast).toArray(Episode[]::new); if (forceAll || selection.length == 0) {