Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
267ed10e
Commit
267ed10e
authored
Jan 23, 2020
by
segfault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Greeter: Refactor
We never call unlock() with the callback arguments, so lets remove them.
parent
0b381fb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/ui/persistent_storage.py
...thon3/dist-packages/tailsgreeter/ui/persistent_storage.py
+3
-9
No files found.
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/ui/persistent_storage.py
View file @
267ed10e
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment