From 9570918f08409a7c432a9d88d784101a3aa0d4e2 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sat, 25 Apr 2020 21:26:18 +0200 Subject: [PATCH] do not reloadData on rename --- src/be/nikiroo/fanfix_swing/gui/book/BookPopup.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/be/nikiroo/fanfix_swing/gui/book/BookPopup.java b/src/be/nikiroo/fanfix_swing/gui/book/BookPopup.java index 3110e006..d6499385 100644 --- a/src/be/nikiroo/fanfix_swing/gui/book/BookPopup.java +++ b/src/be/nikiroo/fanfix_swing/gui/book/BookPopup.java @@ -480,7 +480,9 @@ public class BookPopup extends JPopupMenu { // simple fireElementChanged is not // enough, we need to clear the whole cache (for // BrowserPanel for instance) - informer.invalidateCache(); + if (what != ChangeAction.TITLE) { + informer.invalidateCache(); + } // But we ALSO fire those, because they appear // before the whole refresh... @@ -492,7 +494,7 @@ public class BookPopup extends JPopupMenu { // Sources/Authors(/Tags?) list // Even if problems occurred, still invalidate - // the cache + // the cache above get(); } catch (Exception e) { UiHelper.error(BookPopup.this.getParent(), -- 2.27.0