supporting custom confirmation / deny button label

This commit is contained in:
Vinicius Moreira
2019-08-26 14:32:33 -03:00
parent 0f33597168
commit 69b1837c83
6 changed files with 17 additions and 9 deletions

View File

@@ -223,7 +223,12 @@ class ManageWindow(QWidget):
return action
def _ask_confirmation(self, msg: dict):
diag = ConfirmationDialog(title=msg['title'], body=msg['body'], locale_keys=self.locale_keys, components=msg['options'])
diag = ConfirmationDialog(title=msg['title'],
body=msg['body'],
locale_keys=self.locale_keys,
components=msg['components'],
confirmation_label=msg['confirmation_label'],
deny_label=msg['deny_label'])
self.signal_user_res.emit(diag.is_confirmed())
def _show_message(self, msg: dict):