fix(gui): correct set highlighted text in search (#1507)
This commit is contained in:
@@ -307,7 +307,7 @@ public class SearchDialog extends CommonSearchDialog {
|
||||
Flowable<String> textChanges = onTextFieldChanges(searchField);
|
||||
Flowable<String> searchEvents = Flowable.merge(textChanges, searchEmitter.getFlowable());
|
||||
searchDisposable = searchEvents
|
||||
.debounce(100, TimeUnit.MILLISECONDS)
|
||||
.debounce(500, TimeUnit.MILLISECONDS)
|
||||
.observeOn(SwingSchedulers.edt())
|
||||
.subscribe(this::search);
|
||||
}
|
||||
@@ -342,6 +342,7 @@ public class SearchDialog extends CommonSearchDialog {
|
||||
return;
|
||||
}
|
||||
|
||||
updateTableHighlight();
|
||||
startSearch();
|
||||
searchTask.setResultsLimit(100);
|
||||
searchTask.setProgressListener(this::updateProgress);
|
||||
@@ -476,7 +477,6 @@ public class SearchDialog extends CommonSearchDialog {
|
||||
private synchronized void searchComplete() {
|
||||
UiUtils.uiThreadGuard();
|
||||
LOG.debug("Search complete");
|
||||
updateTableHighlight();
|
||||
updateTable();
|
||||
|
||||
boolean complete = searchTask == null || searchTask.isSearchComplete();
|
||||
|
||||
Reference in New Issue
Block a user