From 10192e9b74850d6b0b779b984036a30d2c623b53 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 8 Jun 2022 11:50:57 +0200 Subject: [PATCH] guided: refresh buttons when options are checked/unchecked Signed-off-by: Olivier Gayot --- subiquity/ui/views/filesystem/guided.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subiquity/ui/views/filesystem/guided.py b/subiquity/ui/views/filesystem/guided.py index d049e3b5..b5d825c4 100644 --- a/subiquity/ui/views/filesystem/guided.py +++ b/subiquity/ui/views/filesystem/guided.py @@ -80,6 +80,7 @@ class LVMOptionsForm(SubForm): def _toggle(self, sender, val): self.luks_options.enabled = val + self.validated() encrypt = BooleanField(_("Encrypt the LVM group with LUKS"), help=NO_HELP) luks_options = SubFormField(LUKSOptionsForm, "", help=NO_HELP) @@ -146,6 +147,7 @@ class GuidedChoiceForm(SubForm): def _toggle(self, sender, val): self.lvm_options.enabled = val + self.validated() class GuidedForm(Form): @@ -165,6 +167,7 @@ class GuidedForm(Form): def _toggle_guided(self, sender, new_value): self.guided_choice.enabled = new_value + self.validated() HELP = _("""