diff --git a/bauh/view/qt/confirmation.py b/bauh/view/qt/confirmation.py index f5f2892c..7edcbc13 100644 --- a/bauh/view/qt/confirmation.py +++ b/bauh/view/qt/confirmation.py @@ -16,10 +16,11 @@ class ConfirmationDialog(QMessageBox): self.addButton(locale_keys['popup.button.no'] if not deny_label else deny_label.capitalize(), QMessageBox.NoRole) if body: - self.layout().addWidget(QLabel(body), 0, 1) if not components: self.setIcon(QMessageBox.Question) + self.layout().addWidget(QLabel(body), 0, 1) + if components: comps_container = QWidget(parent=self) comps_container.setLayout(QVBoxLayout()) diff --git a/bauh/view/qt/thread.py b/bauh/view/qt/thread.py index ba3e2d4e..a1d258c3 100644 --- a/bauh/view/qt/thread.py +++ b/bauh/view/qt/thread.py @@ -28,9 +28,9 @@ class AsyncAction(QThread, ProcessWatcher): self.wait_confirmation = False self.confirmation_res = None - def request_confirmation(self, title: str, body: str, options: List[InputViewComponent] = None, confirmation_label: str = None, deny_label: str = None) -> bool: + def request_confirmation(self, title: str, body: str, components: List[InputViewComponent] = None, confirmation_label: str = None, deny_label: str = None) -> bool: self.wait_confirmation = True - self.signal_confirmation.emit({'title': title, 'body': body, 'components': options, 'confirmation_label': confirmation_label, 'deny_label': deny_label}) + self.signal_confirmation.emit({'title': title, 'body': body, 'components': components, 'confirmation_label': confirmation_label, 'deny_label': deny_label}) self.wait_user() return self.confirmation_res diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index a6061ee1..d27efd9d 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -398,7 +398,7 @@ class ManageWindow(QWidget): self.label_status.setText(status) def _change_label_substatus(self, substatus: str): - self.label_substatus.setText(substatus) + self.label_substatus.setText('

{}

'.format(substatus)) if not substatus: self.toolbar_substatus.hide() elif not self.toolbar_substatus.isVisible():