UI层规避该问题

This commit is contained in:
Qxiangwenjie 2023-07-07 16:20:03 +08:00 committed by Yue-Lan
parent 97d94d5d3e
commit 655a9989bb
1 changed files with 4 additions and 0 deletions

View File

@ -1203,6 +1203,10 @@ void MainWindow::updateSearch(const QString &uri, const QString &key, bool updat
isSearchEngine = false;
}
if (!m_last_search_path.startsWith("file:///") && !m_last_search_path.startsWith("computer:///")) {
isSearchEngine = false;
}
auto targetUri = Peony::SearchVFSUriParser::parseSearchKey(m_last_search_path,
m_last_key, true, false, "", true);
targetUri = Peony::SearchVFSUriParser::addSearchKey(targetUri, isSearchEngine);