ソースを参照

Help: Sort search results by score

This makes pages with matching titles appear at the top of the search
results.
Tim Ledbetter 2 年 前
コミット
8bb6a820e2
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Userland/Applications/Help/MainWidget.cpp

+ 1 - 1
Userland/Applications/Help/MainWidget.cpp

@@ -230,7 +230,7 @@ ErrorOr<void> MainWidget::initialize_fallibles(GUI::Window& window)
 
 
     m_manual_model = TRY(ManualModel::create());
     m_manual_model = TRY(ManualModel::create());
     m_browse_view->set_model(*m_manual_model);
     m_browse_view->set_model(*m_manual_model);
-    m_filter_model = TRY(GUI::FilteringProxyModel::create(*m_manual_model));
+    m_filter_model = TRY(GUI::FilteringProxyModel::create(*m_manual_model, GUI::FilteringProxyModel::FilteringOptions::SortByScore));
     m_search_view->set_model(*m_filter_model);
     m_search_view->set_model(*m_filter_model);
     m_filter_model->set_filter_term(""sv);
     m_filter_model->set_filter_term(""sv);