Use model searching in commits (and sub-commits) view

This commit is contained in:
Stefan Haller 2024-05-31 17:24:50 +02:00
parent 779e6f95a3
commit 6a6316cfb6
75 changed files with 9066 additions and 4175 deletions

View file

@ -759,6 +759,14 @@ func (self *RefreshHelper) refForLog() string {
}
func (self *RefreshHelper) refreshView(context types.Context) error {
// Re-applying the filter must be done before re-rendering the view, so that
// the filtered list model is up to date for rendering.
self.searchHelper.ReApplyFilter(context)
return self.c.PostRefreshUpdate(context)
err := self.c.PostRefreshUpdate(context)
// Re-applying the search must be done after re-rendering the view though,
// so that the "x of y" status is shown correctly.
self.searchHelper.ReApplySearch(context)
return err
}