1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00
This commit is contained in:
Reinhard Pointner 2015-12-14 09:50:42 +00:00
parent 1289634318
commit 3ff637e4e1

View File

@ -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);
}