Skip to content

Commit

Permalink
Fixed setting title of saved new library
Browse files Browse the repository at this point in the history
  • Loading branch information
calixtus committed Nov 13, 2020
1 parent f5c52a2 commit b4ceb04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ boolean saveAs(Path file, SaveDatabaseMode mode) {
// we managed to successfully save the file
// thus, we can store the store the path into the context
context.setDatabasePath(file);
// FIXME: We need to refresh the tab titles
libraryTab.updateTabTitle(false);

// Reinstall AutosaveManager and BackupManager for the new file name
libraryTab.resetChangeMonitorAndChangePane();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void listen(ConnectionLostEvent connectionLostEvent) {
new SharedDatabaseLoginDialogView(jabRefFrame).showAndWait();
} else if (answer.get().equals(workOffline)) {
connectionLostEvent.getBibDatabaseContext().convertToLocalDatabase();
// jabRefFrame.refreshWindowAndTabTitles();
jabRefFrame.getLibraryTabs().forEach(tab -> tab.updateTabTitle(tab.isModified()));
jabRefFrame.getDialogService().notify(Localization.lang("Working offline."));
}
} else {
Expand Down

0 comments on commit b4ceb04

Please sign in to comment.