From 53d0929a868ac86b78a016df76794f60bf80978e Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 30 Oct 2024 23:23:28 +0100 Subject: [PATCH] Remove updateEntryEditorIfShowing (#12129) --- src/main/java/org/jabref/gui/LibraryTab.java | 7 ------- src/main/java/org/jabref/gui/cleanup/CleanupAction.java | 1 - .../org/jabref/gui/specialfields/SpecialFieldAction.java | 1 - 3 files changed, 9 deletions(-) diff --git a/src/main/java/org/jabref/gui/LibraryTab.java b/src/main/java/org/jabref/gui/LibraryTab.java index 013776f28f9..49c417623b9 100644 --- a/src/main/java/org/jabref/gui/LibraryTab.java +++ b/src/main/java/org/jabref/gui/LibraryTab.java @@ -631,13 +631,6 @@ private void ensureNotShowingBottomPanel(List entriesToCheck) { } } - public void updateEntryEditorIfShowing() { - if (mode == PanelMode.MAIN_TABLE_AND_ENTRY_EDITOR) { - BibEntry currentEntry = entryEditor.getCurrentlyEditedEntry(); - showAndEdit(currentEntry); - } - } - /** * Put an asterisk behind the filename to indicate the database has changed. */ diff --git a/src/main/java/org/jabref/gui/cleanup/CleanupAction.java b/src/main/java/org/jabref/gui/cleanup/CleanupAction.java index b09d82e6f5f..3be3143ab58 100644 --- a/src/main/java/org/jabref/gui/cleanup/CleanupAction.java +++ b/src/main/java/org/jabref/gui/cleanup/CleanupAction.java @@ -131,7 +131,6 @@ private void showResults() { } if (modifiedEntriesCount > 0) { - tabSupplier.get().updateEntryEditorIfShowing(); tabSupplier.get().markBaseChanged(); } diff --git a/src/main/java/org/jabref/gui/specialfields/SpecialFieldAction.java b/src/main/java/org/jabref/gui/specialfields/SpecialFieldAction.java index 990c81cd3d3..9e6bcc3d95a 100644 --- a/src/main/java/org/jabref/gui/specialfields/SpecialFieldAction.java +++ b/src/main/java/org/jabref/gui/specialfields/SpecialFieldAction.java @@ -82,7 +82,6 @@ public void execute() { if (ce.hasEdits()) { undoManager.addEdit(ce); tabSupplier.get().markBaseChanged(); - tabSupplier.get().updateEntryEditorIfShowing(); String outText; if (nullFieldIfValueIsTheSame || value == null) { outText = getTextDone(specialField, Integer.toString(bes.size()));