[GTK] Fix needing bytes with hashlib on Py3
This commit is contained in:
parent
841cb889aa
commit
89868cc944
|
@ -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…
Reference in New Issue