From 2864dd252e03809185fb795a44e783259487d265 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 2 May 2016 00:33:46 +0800 Subject: [PATCH] Improved UI --- .../filebot/ui/subtitle/SubtitleDownloadComponent.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/net/filebot/ui/subtitle/SubtitleDownloadComponent.java b/source/net/filebot/ui/subtitle/SubtitleDownloadComponent.java index 463d3fc8..b37b8347 100644 --- a/source/net/filebot/ui/subtitle/SubtitleDownloadComponent.java +++ b/source/net/filebot/ui/subtitle/SubtitleDownloadComponent.java @@ -55,7 +55,6 @@ import ca.odell.glazedlists.swing.DefaultEventSelectionModel; import ca.odell.glazedlists.swing.TextComponentMatcherEditor; import net.filebot.ResourceManager; import net.filebot.Settings; -import net.filebot.UserFiles; import net.filebot.subtitle.SubtitleFormat; import net.filebot.ui.subtitle.SubtitlePackage.Download.Phase; import net.filebot.ui.transfer.DefaultTransferHandler; @@ -316,7 +315,7 @@ class SubtitleDownloadComponent extends JComponent { } if (selectedOutputFolder != null) { - List output = new ArrayList(); + List outputFiles = new ArrayList(); for (Object object : selection) { MemoryFile file = (MemoryFile) object; @@ -327,11 +326,12 @@ class SubtitleDownloadComponent extends JComponent { SubtitleFormat targetFormat = selectedFormat.getFilter().accept(file.getName()) ? null : selectedFormat; // check if format conversion is necessary writeFile(exportSubtitles(file, targetFormat, selectedTimingOffset, selectedEncoding), destination); - output.add(destination); + + outputFiles.add(destination); } // reveal exported files - UserFiles.revealFiles(output); + revealFiles(outputFiles); } } catch (Exception e) { log.log(Level.WARNING, e.getMessage(), e);