Commit 267ed10e authored by segfault's avatar segfault

Greeter: Refactor

We never call unlock() with the callback arguments, so lets remove them.
parent 0b381fb9
......@@ -53,12 +53,7 @@ class PersistentStorage(object):
# Remove warning icon
editable.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, None)
def unlock(self, unlocked_cb=None, failed_cb=None):
if not unlocked_cb:
unlocked_cb = self.cb_unlocked
if not failed_cb:
failed_cb = self.cb_unlock_failed
def unlock(self):
self.entry_storage_passphrase.set_sensitive(False)
self.button_storage_unlock.set_sensitive(False)
self.button_storage_unlock.set_label(_("Unlocking…"))
......@@ -80,9 +75,8 @@ class PersistentStorage(object):
target=do_unlock_storage,
args=(self.persistence_setting.unlock,
passphrase,
unlocked_cb,
failed_cb)
self.cb_unlocked,
self.cb_unlock_failed)
)
unlocking_thread.start()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment