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