[PATCH hiprompt-gtk-py] window.py: move button enable timeout setup into make_ui
Export this patch
Otherwise buttons are permanently disabled when decrypting on a hard
locked store.
---
hiprompt_gtk/window.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hiprompt_gtk/window.py b/hiprompt_gtk/window.py
index 1390cfd..1f80ae4 100644
--- a/hiprompt_gtk/window.py
+++ b/hiprompt_gtk/window.py
@@ -31,7 +31,6 @@ class Window:
self.window.add_accel_group(self.accel)
self.make_ui()
- GLib.timeout_add(700, self.enable_actions)
def make_ui(self):
if self.session.mode == PromptMode.disclose:
@@ -48,6 +47,7 @@ class Window:
self.header.show_all()
self.box.show_all()
+ GLib.timeout_add(700, self.enable_actions)
def enable_actions(self, *args):
for button in self.buttons:
--
2.36.1
Thanks!
To git@git.sr.ht:~sircmpwn/hiprompt-gtk-py
c6cf168..f744993 master -> master