diff --git a/CHANGELOG.md b/CHANGELOG.md index da15e365..4b282789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [0.9.6] 2020 +### Improvements +- UI + - name filter now compares the typed word with the beginning of the package name ### Fixes - Web - handling unexpected connection errors diff --git a/bauh/view/qt/commons.py b/bauh/view/qt/commons.py index 2204af0d..34708aab 100644 --- a/bauh/view/qt/commons.py +++ b/bauh/view/qt/commons.py @@ -51,7 +51,7 @@ def apply_filters(pkgv: PackageView, filters: dict, info: dict): hidden = not pkgv.model.categories or not [c for c in pkgv.model.categories if c.lower() == filters['category']] if not hidden and filters['name']: - hidden = filters['name'] not in pkgv.model.name.lower() + hidden = not pkgv.model.name.lower().startswith(filters['name']) if not hidden and (not filters['display_limit'] or len(info['pkgs_displayed']) < filters['display_limit']): info['pkgs_displayed'].append(pkgv)