configpanels: Fill prefilled_answers with answers from previous sections/panels, needed by the visible mecanism

This commit is contained in:
Alexandre Aubin 2021-10-15 16:40:25 +02:00
parent 3dd7aa9b59
commit 759b828c8a

View file

@ -562,9 +562,12 @@ class ConfigPanel:
display_header(f"\n# {name}") display_header(f"\n# {name}")
# Check and ask unanswered questions # Check and ask unanswered questions
prefilled_answers = self.args.copy()
prefilled_answers.update(self.new_values)
questions = ask_questions_and_parse_answers( questions = ask_questions_and_parse_answers(
section["options"], section["options"],
prefilled_answers=self.args, prefilled_answers=prefilled_answers,
current_values=self.values, current_values=self.values,
hooks=self.hooks, hooks=self.hooks,
) )