Skip to content

Commit

Permalink
Update src/main/java/org/jabref/gui/search/GlobalSearchBar.java
Browse files Browse the repository at this point in the history
Co-authored-by: Loay Ghreeb <[email protected]>
  • Loading branch information
Siedlerchr and LoayGhreeb authored Sep 29, 2024
1 parent ff14bbc commit 1919d61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/jabref/gui/search/GlobalSearchBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,15 @@ private void initSearchModifierButtons() {
LibraryTab libraryTab = tabContainer.getCurrentLibraryTab();
if (libraryTab != null && enableFulltextSearch) {
filePreferences.setFulltextIndexLinkedFiles(true);
searchPreferences.setSearchFlag(SearchFlags.FULLTEXT, true);
}
if (!enableFulltextSearch) {
fulltextButton.setSelected(false);
searchPreferences.setSearchFlag(SearchFlags.FULLTEXT, false);
}
} else {
searchPreferences.setSearchFlag(SearchFlags.FULLTEXT, newVal);
}
searchPreferences.setSearchFlag(SearchFlags.FULLTEXT, newVal);
updateSearchQuery();
});

Expand Down

0 comments on commit 1919d61

Please sign in to comment.