1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-16 22:35:04 -05:00

Minor optimizations

This commit is contained in:
Reinhard Pointner 2016-10-09 03:16:32 +08:00
parent 6c98f249d1
commit b9f0a9ef0e

View File

@ -359,6 +359,7 @@ public class RenamePanel extends JComponent {
})); }));
}); });
// copy debug information (paths and objects)
installAction(this, WHEN_IN_FOCUSED_WINDOW, getKeyStroke(VK_F7, 0), newAction("Copy Debug Information", evt -> { installAction(this, WHEN_IN_FOCUSED_WINDOW, getKeyStroke(VK_F7, 0), newAction("Copy Debug Information", evt -> {
try { try {
withWaitCursor(evt.getSource(), () -> { withWaitCursor(evt.getSource(), () -> {
@ -366,6 +367,8 @@ public class RenamePanel extends JComponent {
if (text.length() > 0) { if (text.length() > 0) {
copyToClipboard(text); copyToClipboard(text);
log.info("Match model has been copied to clipboard"); log.info("Match model has been copied to clipboard");
} else {
log.warning("Match model is empty");
} }
}); });
} catch (Exception e) { } catch (Exception e) {