[fix][ui] displaying the type filters on the search results when there is only one type available and some actions are done

This commit is contained in:
Vinicius Moreira
2020-06-15 11:02:39 -03:00
parent 3fc6178394
commit a46ebd8a2f
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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