mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 00:18:39 +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 response_id == Gtk.ResponseType.OK:
|
||||||
if (
|
if (
|
||||||
self.config['tray_password']
|
self.config['tray_password']
|
||||||
== sha(dialog.get_password()).hexdigest()
|
== sha(decode_bytes(dialog.get_password()).encode()).hexdigest()
|
||||||
):
|
):
|
||||||
quit_gtkui()
|
quit_gtkui()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue