JabRef version
5.13 (latest release)
Operating system
Windows
Details on version and operating system
Windows 11
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
- Start JabRef and open a library from files.
- Write in the search bar.
- The auto-completion is not working.
- Open another library.
- Return to the first one, and the auto-completion will work.
This is because of the binding of the selected tab:
|
EasyBind.subscribe(tabbedPane.getSelectionModel().selectedItemProperty(), tab -> { |
is responsible for setting the auto-completer for the search bar:
|
// Update search autocompleter with information for the correct database: |
|
globalSearchBar.setAutoCompleter(libraryTab.getAutoCompleter()); |
This will not be fired after
dataLoadingTask is finished (because the tab is already selected and showing a loading table)
|
private void onDatabaseLoadingSucceed(ParserResult result) { |
(
dataLoadingTask will set up the auto-completer but it will not be used in the search bar until switching to another tab).
Appendix
...
Log File
Paste an excerpt of your log file here
JabRef version
5.13 (latest release)
Operating system
Windows
Details on version and operating system
Windows 11
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
This is because of the binding of the selected tab:
jabref/src/main/java/org/jabref/gui/frame/JabRefFrame.java
Line 363 in 6f6042d
jabref/src/main/java/org/jabref/gui/frame/JabRefFrame.java
Lines 382 to 383 in 6f6042d
dataLoadingTaskis finished (because the tab is already selected and showing a loading table)jabref/src/main/java/org/jabref/gui/LibraryTab.java
Line 259 in 06786ec
dataLoadingTaskwill set up the auto-completer but it will not be used in the search bar until switching to another tab).Appendix
...
Log File