mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 00:38:52 -05:00
Fix preview not updating
This commit is contained in:
parent
61780da8a9
commit
2d9d388c56
@ -525,7 +525,7 @@ public class FormatDialog extends JDialog {
|
|||||||
@Override
|
@Override
|
||||||
protected void done() {
|
protected void done() {
|
||||||
try {
|
try {
|
||||||
String value = get().trim();
|
preview.setText(get().trim());
|
||||||
|
|
||||||
// check internal script exception
|
// check internal script exception
|
||||||
if (format.caughtScriptException() != null) {
|
if (format.caughtScriptException() != null) {
|
||||||
@ -533,12 +533,11 @@ public class FormatDialog extends JDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check empty output
|
// check empty output
|
||||||
if (value.isEmpty()) {
|
if (preview.getText().isEmpty()) {
|
||||||
throw new Exception("Formatted value is empty");
|
throw new Exception("Formatted value is empty");
|
||||||
}
|
}
|
||||||
|
|
||||||
// no warning or error
|
// no warning or error
|
||||||
preview.setText(value);
|
|
||||||
status.setVisible(false);
|
status.setVisible(false);
|
||||||
} catch (CancellationException e) {
|
} catch (CancellationException e) {
|
||||||
// ignore, cancelled tasks are obsolete anyway
|
// ignore, cancelled tasks are obsolete anyway
|
||||||
|
Loading…
Reference in New Issue
Block a user