wizard: scan hardware devices directly
This commit is contained in:
@@ -338,13 +338,13 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
|
||||
self.show_message(msg)
|
||||
|
||||
@wizard_dialog
|
||||
def confirm_dialog(self, msg, run_next):
|
||||
self.confirm(msg)
|
||||
def confirm_dialog(self, title, message, run_next):
|
||||
self.confirm(message, title)
|
||||
|
||||
def confirm(self, msg):
|
||||
def confirm(self, message, title):
|
||||
vbox = QVBoxLayout()
|
||||
vbox.addWidget(WWLabel(msg))
|
||||
self.set_main_layout(vbox)
|
||||
vbox.addWidget(WWLabel(message))
|
||||
self.set_main_layout(vbox, title)
|
||||
|
||||
@wizard_dialog
|
||||
def action_dialog(self, action, run_next):
|
||||
@@ -379,6 +379,13 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
|
||||
self.set_main_layout(vbox, '')
|
||||
return clayout.selected_index()
|
||||
|
||||
def get_passphrase(self, msg, confirm):
|
||||
phrase = self.pw_layout(msg, PW_PASSPHRASE)
|
||||
if phrase is None:
|
||||
raise UserCancelled
|
||||
return phrase
|
||||
|
||||
|
||||
@wizard_dialog
|
||||
def account_id_dialog(self, run_next):
|
||||
message = '\n'.join([
|
||||
|
||||
Reference in New Issue
Block a user