From 3ff637e4e163f979dc7f6e540f43e65539f6a588 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 14 Dec 2015 09:50:42 +0000 Subject: [PATCH] * fix --- source/net/filebot/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/Main.java b/source/net/filebot/Main.java index 978bb4c0..928ed885 100644 --- a/source/net/filebot/Main.java +++ b/source/net/filebot/Main.java @@ -224,9 +224,9 @@ public class Main { // single panel frame PanelBuilder[] selection = Stream.of(MainFrame.createPanelBuilders()).filter(p -> p.getName().matches(args.mode)).toArray(PanelBuilder[]::new); if (selection.length == 1) { - frame = new MainFrame(selection); - } else if (selection.length > 1) { frame = new SinglePanelFrame(selection[0]).publish(new FileTransferable(args.getFiles(false))); + } else if (selection.length > 1) { + frame = new MainFrame(selection); } else { throw new IllegalArgumentException("Illegal mode: " + args.mode); }