From 566478e279b406edcfc4713cf07919a1db649823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Mon, 17 Feb 2020 18:33:25 -0300 Subject: [PATCH] [fix][ui] not displaying some priority search results at the top of the table --- CHANGELOG.md | 11 +++++++---- bauh/view/qt/window.py | 8 +++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5dc3a57..9530117f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,16 +3,19 @@ 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.8.4] - 2020-02 ### Improvements -- UI: +- UI - treating multiple lines on the application's description displayed on the table ### Fixes - Snap - not able to launch applications on some distros ( e.g: OpenSuse ) +- UI + - not displaying some priority search results at the top of the table -## [0.8.3] - 2020-02-13 + +## [0.8.3] - 2020-02 ### Improvements - New update lifecycle: - now every package manager must provide all requirements before upgrading all selected packages ( can be disabled through the settings file **~/.config/bauh/config.yml** or the UI ) @@ -23,7 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - checking architecture dependencies (x86_64, i686) - architecture dependencies are displayed on the info window as well - optimizations to speed up zst packages building - - showing a warning messaging when trying to install / update / downgrade a package with the root user + - showing a warning message when trying to install / update / downgrade a package with the root user - UI: - **Settings** available as a tray action as well - minor improvements diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index 8c7ce9d3..a9938232 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -692,9 +692,9 @@ class ManageWindow(QWidget): setattr(self, attr, checked) checkbox.blockSignals(False) - def _gen_filters(self, updates: int = 0, ignore_updates: bool = False) -> dict: + def _gen_filters(self, updates: int = 0, ignore_updates: bool = False, only_apps: bool = None) -> dict: return { - 'only_apps': self.filter_only_apps, + 'only_apps': self.filter_only_apps if only_apps is None else only_apps, 'type': self.type_filter, 'category': self.category_filter, 'updates': False if ignore_updates else self.filter_updates, @@ -774,7 +774,9 @@ class ManageWindow(QWidget): def _apply_filters(self, pkgs_info: dict, ignore_updates: bool): pkgs_info['pkgs_displayed'] = [] - filters = self._gen_filters(updates=pkgs_info['updates'], ignore_updates=ignore_updates) + filters = self._gen_filters(updates=pkgs_info['updates'], + ignore_updates=ignore_updates, + only_apps=False if self.search_performed else None) for pkgv in pkgs_info['pkgs']: commons.apply_filters(pkgv, filters, pkgs_info)