From caa68c29e76dd90b8932c5787c57d1108035d5e8 Mon Sep 17 00:00:00 2001 From: Siedlerchr Date: Sat, 20 Jul 2024 18:30:32 +0200 Subject: [PATCH 1/2] Always show star for local unsaved library --- CHANGELOG.md | 1 + src/main/java/org/jabref/gui/LibraryTab.java | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41bef1f6584..674b14ae152 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We fixed an issue where the 'Check for updates' preference was not saved. [#11485](https://github.com/JabRef/jabref/pull/11485) - We fixed an issue where an exception was thrown after changing "show preview as a tab" in the preferences. [#11515](https://github.com/JabRef/jabref/pull/11515) +- We fixed an issue where a new unsaved library was not marked with an asterisk [] ### Removed diff --git a/src/main/java/org/jabref/gui/LibraryTab.java b/src/main/java/org/jabref/gui/LibraryTab.java index f3eb5d52d03..bd16389dd9c 100644 --- a/src/main/java/org/jabref/gui/LibraryTab.java +++ b/src/main/java/org/jabref/gui/LibraryTab.java @@ -415,13 +415,8 @@ public void updateTabTitle(boolean isChanged) { uniquePathPart.ifPresent(part -> tabTitle.append(" \u2013 ").append(part)); } else { if (databaseLocation == DatabaseLocation.LOCAL) { + tabTitle.append('*'); tabTitle.append(Localization.lang("untitled")); - if (bibDatabaseContext.getDatabase().hasEntries()) { - // if the database is not empty and no file is assigned, - // the database came from an import and has to be treated somehow - // -> mark as changed - tabTitle.append('*'); - } } else { addSharedDbInformation(tabTitle, bibDatabaseContext); addSharedDbInformation(toolTipText, bibDatabaseContext); From 0942526f8577310343ad7715ca3518bf2259e3a7 Mon Sep 17 00:00:00 2001 From: Siedlerchr Date: Sat, 20 Jul 2024 18:32:14 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 674b14ae152..a222f215bfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We fixed an issue where the 'Check for updates' preference was not saved. [#11485](https://github.com/JabRef/jabref/pull/11485) - We fixed an issue where an exception was thrown after changing "show preview as a tab" in the preferences. [#11515](https://github.com/JabRef/jabref/pull/11515) -- We fixed an issue where a new unsaved library was not marked with an asterisk [] +- We fixed an issue where a new unsaved library was not marked with an asterisk [#11519](https://github.com/JabRef/jabref/pull/11519) ### Removed