From 2782a93a8685b9eaa5bb3c904d59531da95ebfd3 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 27 Aug 2014 12:08:00 +0000 Subject: [PATCH] * support "filebot --mode rename " usage --- source/net/filebot/Main.java | 3 ++- source/net/filebot/ui/rename/RenamePanel.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/Main.java b/source/net/filebot/Main.java index b97cd526..7111be3c 100644 --- a/source/net/filebot/Main.java +++ b/source/net/filebot/Main.java @@ -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) { diff --git a/source/net/filebot/ui/rename/RenamePanel.java b/source/net/filebot/ui/rename/RenamePanel.java index b95261c5..aef71cda 100644 --- a/source/net/filebot/ui/rename/RenamePanel.java +++ b/source/net/filebot/ui/rename/RenamePanel.java @@ -305,6 +305,7 @@ public class RenamePanel extends JComponent { } } }); + this.putClientProperty("transferablePolicy", transferablePolicy); // make buttons larger matchButton.setMargin(new Insets(3, 14, 2, 14));