[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

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