~sircmpwn/hiprompt-gtk-py

f74499302bdd6558d4644c25e15c9b5c482270ea — Alexey Yerin 2 years ago c6cf168
window.py: move button enable timeout setup into make_ui

Otherwise buttons are permanently disabled when decrypting on a hard
locked store.
1 files changed, 1 insertions(+), 1 deletions(-)

M hiprompt_gtk/window.py
M hiprompt_gtk/window.py => hiprompt_gtk/window.py +1 -1
@@ 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: