Make 'Enter' accepts LUKS passphrase (#219)
This commit is contained in:
parent
4111aa2f47
commit
c61fc09716
@ -604,6 +604,8 @@ class InstallKeyWindow:
|
|||||||
|
|
||||||
class luksPassphraseWindow:
|
class luksPassphraseWindow:
|
||||||
def __init__(self, passphrase=None, preexist = False, parent = None):
|
def __init__(self, passphrase=None, preexist = False, parent = None):
|
||||||
|
def ok(*args):
|
||||||
|
self.win.response(gtk.RESPONSE_OK)
|
||||||
luksxml = gtk.glade.XML(findGladeFile("lukspassphrase.glade"),
|
luksxml = gtk.glade.XML(findGladeFile("lukspassphrase.glade"),
|
||||||
domain="anaconda",
|
domain="anaconda",
|
||||||
root="luksPassphraseDialog")
|
root="luksPassphraseDialog")
|
||||||
@ -637,6 +639,7 @@ class luksPassphraseWindow:
|
|||||||
if parent:
|
if parent:
|
||||||
self.win.set_transient_for(parent)
|
self.win.set_transient_for(parent)
|
||||||
|
|
||||||
|
self.confirmEntry.connect('activate', ok)
|
||||||
addFrame(self.win)
|
addFrame(self.win)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user