未验证 提交 4679172d 编写于 作者: S Skylot

fix(gui): correct set highlighted text in search (#1507)

上级 92a6c333
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册