diff --git a/CHANGELOG.md b/CHANGELOG.md index c7c6c0d1..55682149 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - displaying empty categories - 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 - 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 693fe79b..39aa4f4e 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -864,7 +864,7 @@ class ManageWindow(QWidget): if not keeping_selected: self.type_filter = self.any_type_filter - if available_types and len(available_types) > 1: + if available_types: if self.combo_filter_type.count() > 1: for _ in range(self.combo_filter_type.count() - 1): self.combo_filter_type.removeItem(1) @@ -887,7 +887,7 @@ class ManageWindow(QWidget): self.combo_filter_type.blockSignals(True) self.combo_filter_type.setCurrentIndex(sel_type if sel_type > -1 else 0) self.combo_filter_type.blockSignals(False) - self.ref_combo_filter_type.setVisible(True) + self.ref_combo_filter_type.setVisible(len(available_types) > 1) else: self.ref_combo_filter_type.setVisible(False)