mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
[GTK] Fix needing bytes with hashlib on Py3
This commit is contained in:
parent
841cb889aa
commit
89868cc944
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ class MainWindow(component.Component):
|
|||
if response_id == Gtk.ResponseType.OK:
|
||||
if (
|
||||
self.config['tray_password']
|
||||
== sha(dialog.get_password()).hexdigest()
|
||||
== sha(decode_bytes(dialog.get_password()).encode()).hexdigest()
|
||||
):
|
||||
quit_gtkui()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue