Skip to content

Commit

Permalink
fixes JabRef#8691
Browse files Browse the repository at this point in the history
Disable the button before starting the 'write' task then re-enables the button after the task is complete
Create WriteMetadataToPdfCommand, bind its 'executable' property to the button's 'disable' property
  • Loading branch information
Mohamed El-Morsy committed May 23, 2022
1 parent 92d75bd commit e235f92
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public void execute() {
} else {
synchronized (linkedFile) {
try {
Thread.sleep(3000);
// Similar code can be found at {@link org.jabref.gui.exporter.WriteMetadataToPdfAction.writeMetadataToFile}
XmpUtilWriter.writeXmp(file.get(), entry, databaseContext.getDatabase(), preferences.getXmpPreferences());

Expand Down

0 comments on commit e235f92

Please sign in to comment.