* support "filebot --mode rename <file>" usage

This commit is contained in:
Reinhard Pointner 2014-08-27 12:08:00 +00:00
parent a634abdb85
commit 2782a93a86
2 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,7 @@ import net.filebot.mac.MacAppUtilities;
import net.filebot.ui.MainFrame;
import net.filebot.ui.PanelBuilder;
import net.filebot.ui.SinglePanelFrame;
import net.filebot.ui.transfer.FileTransferable;
import net.filebot.util.ByteBufferInputStream;
import net.filebot.util.PreferencesMap.PreferencesEntry;
import net.filebot.util.TeePrintStream;
@ -252,7 +253,7 @@ public class Main {
// single panel frame
for (PanelBuilder it : MainFrame.createPanelBuilders()) {
if (args.mode.equalsIgnoreCase(it.getName())) {
frame = new SinglePanelFrame(it);
frame = new SinglePanelFrame(it).publish(new FileTransferable(args.getFiles(true)));
}
}
if (frame == null) {

View File

@ -305,6 +305,7 @@ public class RenamePanel extends JComponent {
}
}
});
this.putClientProperty("transferablePolicy", transferablePolicy);
// make buttons larger
matchButton.setMargin(new Insets(3, 14, 2, 14));