We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 133fbaa commit a9115a2Copy full SHA for a9115a2
src/main/java/org/jabref/logic/cleanup/RenamePdfCleanup.java
@@ -7,6 +7,7 @@
7
import java.util.Objects;
8
import java.util.Optional;
9
10
+import org.jabref.gui.util.DefaultTaskExecutor;
11
import org.jabref.logic.externalfiles.LinkedFileHandler;
12
import org.jabref.model.FieldChange;
13
import org.jabref.model.cleanup.CleanupJob;
@@ -54,8 +55,8 @@ public List<FieldChange> cleanup(BibEntry entry) {
54
55
}
56
57
if (changed) {
- Optional<FieldChange> changes = entry.setFiles(files);
58
- return OptionalUtil.toList(changes);
+ Optional<FieldChange> fileFieldChanged = DefaultTaskExecutor.runInJavaFXThread(() -> entry.setFiles(files));
59
+ return OptionalUtil.toList(fileFieldChanged);
60
61
62
return Collections.emptyList();
0 commit comments