From a46ebd8a2f05ba3fe70519623cfafad884bfb0b4 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Mon, 15 Jun 2020 11:02:39 -0300 Subject: [PATCH] [fix][ui] displaying the type filters on the search results when there is only one type available and some actions are done --- CHANGELOG.md | 1 + bauh/view/qt/window.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55682149..a06babdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - not scrolling the table to top after updating its content - not calling initial required tasks after enabling a new package type on settings - not updating the type filters if only type is available after refreshing the table + - displaying the type filters on the search results when there is only one type available and some actions are done - minor fixes - Tray - update notifications not working on Ubuntu 18.04 diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index c3f18c31..8d5185be 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -853,7 +853,7 @@ class ManageWindow(QWidget): def _update_type_filters(self, available_types: dict = None, keep_selected: bool = False): if available_types is None: - self.ref_combo_filter_type.setVisible(self.combo_filter_type.count() > 1) + self.ref_combo_filter_type.setVisible(self.combo_filter_type.count() > 2) else: keeping_selected = keep_selected and available_types and self.type_filter in available_types