Skip to content

Commit 25dedec

Browse files
authored
Always show star for local unsaved library (#11519)
* Always show star for local unsaved library * changelog
1 parent a46b0e0 commit 25dedec

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
2525

2626
- We fixed an issue where the 'Check for updates' preference was not saved. [#11485](https://github.com/JabRef/jabref/pull/11485)
2727
- 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)
28+
- We fixed an issue where a new unsaved library was not marked with an asterisk [#11519](https://github.com/JabRef/jabref/pull/11519)
2829

2930
### Removed
3031

src/main/java/org/jabref/gui/LibraryTab.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,13 +415,8 @@ public void updateTabTitle(boolean isChanged) {
415415
uniquePathPart.ifPresent(part -> tabTitle.append(" \u2013 ").append(part));
416416
} else {
417417
if (databaseLocation == DatabaseLocation.LOCAL) {
418+
tabTitle.append('*');
418419
tabTitle.append(Localization.lang("untitled"));
419-
if (bibDatabaseContext.getDatabase().hasEntries()) {
420-
// if the database is not empty and no file is assigned,
421-
// the database came from an import and has to be treated somehow
422-
// -> mark as changed
423-
tabTitle.append('*');
424-
}
425420
} else {
426421
addSharedDbInformation(tabTitle, bibDatabaseContext);
427422
addSharedDbInformation(toolTipText, bibDatabaseContext);

0 commit comments

Comments
 (0)