diff --git a/hyo2/qax/app/widgets/qax/plugin_tab.py b/hyo2/qax/app/widgets/qax/plugin_tab.py index ebebf56..ac26113 100644 --- a/hyo2/qax/app/widgets/qax/plugin_tab.py +++ b/hyo2/qax/app/widgets/qax/plugin_tab.py @@ -86,6 +86,8 @@ def set_selected_checks(self, checks: list[QaxCheckReference]): if widget: widget.deleteLater() + # track whether we've added any checks on this plugin tab + no_checks_added = True for check in self.plugin.checks(): # we only add check widgets for the checks that have been selected selected_check = next((x for x in checks if x.id == check.id), None) @@ -94,6 +96,11 @@ def set_selected_checks(self, checks: list[QaxCheckReference]): check_widget.check_changed.connect(self._on_check_changed) self.layout_checks.addWidget(check_widget) self.check_widgets.append(check_widget) + no_checks_added = False + + if no_checks_added: + nothing_label = QtWidgets.QLabel("No checks have been selected for this plugin") + self.layout_checks.addWidget(nothing_label) self.layout_checks.addStretch(1)