mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-25 01:08:52 -05:00
* fix
This commit is contained in:
parent
1289634318
commit
3ff637e4e1
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user