Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Completion in search bar not working until switching tabs #11428

Open
2 tasks done
LoayGhreeb opened this issue Jun 25, 2024 · 0 comments
Open
2 tasks done

Auto-Completion in search bar not working until switching tabs #11428

LoayGhreeb opened this issue Jun 25, 2024 · 0 comments
Labels
autocompletion bug Confirmed bugs or reports that are very likely to be bugs

Comments

@LoayGhreeb
Copy link
Collaborator

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)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Start JabRef and open a library from files.
  2. Write in the search bar.
  3. The auto-completion is not working.
  4. Open another library.
  5. 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
@LoayGhreeb LoayGhreeb added bug Confirmed bugs or reports that are very likely to be bugs autocompletion labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocompletion bug Confirmed bugs or reports that are very likely to be bugs
Projects
None yet
Development

No branches or pull requests

1 participant