1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-25 01:08:52 -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 // single panel frame
PanelBuilder[] selection = Stream.of(MainFrame.createPanelBuilders()).filter(p -> p.getName().matches(args.mode)).toArray(PanelBuilder[]::new); PanelBuilder[] selection = Stream.of(MainFrame.createPanelBuilders()).filter(p -> p.getName().matches(args.mode)).toArray(PanelBuilder[]::new);
if (selection.length == 1) { if (selection.length == 1) {
frame = new MainFrame(selection);
} else if (selection.length > 1) {
frame = new SinglePanelFrame(selection[0]).publish(new FileTransferable(args.getFiles(false))); frame = new SinglePanelFrame(selection[0]).publish(new FileTransferable(args.getFiles(false)));
} else if (selection.length > 1) {
frame = new MainFrame(selection);
} else { } else {
throw new IllegalArgumentException("Illegal mode: " + args.mode); throw new IllegalArgumentException("Illegal mode: " + args.mode);
} }