提交 82f11708 编写于 作者: R Rob Lourens

Fix #20920 - hide search results count if results go to 0

上级 d09231af
......@@ -1176,13 +1176,15 @@ export class SearchViewlet extends Viewlet {
private updateSearchResultCount(): void {
const fileCount = this.viewModel.searchResult.fileCount();
const msgWasHidden = this.messages.isHidden();
if (fileCount > 0) {
const msgWasHidden = this.messages.isHidden();
const div = this.clearMessage();
$(div).p({ text: this.buildResultCountMessage(this.viewModel.searchResult.count(), fileCount) });
if (msgWasHidden) {
this.reLayout();
}
} else if (!msgWasHidden) {
this.messages.hide();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册