Skip to content

Commit

Permalink
Merge pull request #1086 from mwhudson/source-answers
Browse files Browse the repository at this point in the history
fix SourceController.run_answers
  • Loading branch information
mwhudson authored Oct 7, 2021
2 parents 4e3b761 + 26d15ad commit 66021ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion subiquity/client/controllers/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ async def make_ui(self):

def run_answers(self):
if 'source' in self.answers:
self.app.ui.body.form.source.value = self.answers['source']
wanted_id = self.answers['source']
for bf in self.app.ui.body.form._fields:
bf.value = bf.field.name == wanted_id
self.app.ui.body.form._click_done(None)

def cancel(self):
Expand Down

0 comments on commit 66021ef

Please sign in to comment.