fix: full text search navigation panel (#1623)

* fix: full text search navigation panel

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
xiaoyifang 2024-07-01 22:51:57 +08:00 committed by GitHub
parent d30de48fa8
commit ddb9203e34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2133,6 +2133,11 @@ void ArticleView::highlightFTSResults()
.arg( regString );
webview->page()->runJavaScript( script );
auto parts = regString.split( " ", Qt::SkipEmptyParts );
if ( !parts.isEmpty() ) {
firstAvailableText = parts[ 0 ];
ftsSearchPanel->show();
}
}
void ArticleView::setActiveDictIds( const ActiveDictIds & ad )