~sircmpwn/himitsu-devel

hiprompt-gtk-py: window.py: move button enable timeout setup into make_ui v1 APPLIED

Alexey Yerin: 1
 window.py: move button enable timeout setup into make_ui

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/himitsu-devel/patches/33058/mbox | git am -3
Learn more about email & git

[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