1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

SwingUI.copyToClipboard(String text)

This commit is contained in:
Reinhard Pointner 2016-10-09 00:30:29 +08:00
parent e3fbd3825f
commit fb8d6bd64c

View File

@ -65,7 +65,9 @@ public final class SwingUI {
}
public static void copyToClipboard(String text) {
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(text), null);
if (text.length() > 0) {
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(text), null);
}
}
public static void checkEventDispatchThread() {