[GTK] Fix needing bytes with hashlib on Py3

This commit is contained in:
Calum Lind 2018-11-07 15:51:52 +00:00
parent 841cb889aa
commit 89868cc944
1 changed files with 1 additions and 1 deletions

View File

@ -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()