Fix: don't try to render the search_type.ALL

This commit is contained in:
sabaimran 2023-07-01 19:08:19 -07:00
parent f0f6390366
commit 7db97d8aa9

View file

@ -58,6 +58,8 @@ class MainWindow(QtWidgets.QMainWindow):
# Add Settings Panels for each Search Type to Configure Window Layout
self.search_settings_panels = []
for search_type in SearchType:
if search_type == SearchType.All:
continue
current_content_config = self.current_config["content-type"].get(
search_type, None
) or self.get_default_config(search_type=search_type)