From e235f92148f7871c4d08ca2686f8506588960ccd Mon Sep 17 00:00:00 2001 From: Mohamed El-Morsy Date: Mon, 23 May 2022 22:24:10 +0100 Subject: [PATCH] fixes #8691 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 --- .../org/jabref/gui/fieldeditors/WriteMetadataToPdfCommand.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/org/jabref/gui/fieldeditors/WriteMetadataToPdfCommand.java b/src/main/java/org/jabref/gui/fieldeditors/WriteMetadataToPdfCommand.java index 8b7a0444dde..9877b1c3429 100644 --- a/src/main/java/org/jabref/gui/fieldeditors/WriteMetadataToPdfCommand.java +++ b/src/main/java/org/jabref/gui/fieldeditors/WriteMetadataToPdfCommand.java @@ -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());