Make sure to load Groovy (i.e don't just use simple variables) before displaying the Format Editor window

This commit is contained in:
Reinhard Pointner 2016-10-01 01:50:26 +08:00
parent 527cd91a0d
commit bc421e6b8a
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ public class FormatDialog extends JDialog {
try {
// load all necessarily classes to avoid focus issues with RSyntaxTextArea
new RSyntaxTextArea(new RSyntaxDocument(SyntaxConstants.SYNTAX_STYLE_GROOVY));
new ExpressionFormat("{n} - {s00e00} - {t}");
new ExpressionFormat("{n.space('.').lower()}.{s}{e.pad(2)}");
new MediaInfo();
} catch (Throwable e) {
debug.log(Level.SEVERE, "Failed to initialize FormatDialog", e);