Fix wslsetupotions being None

Recent changes in GUI turned possible to have that field as None,
leading to a crash.
This avoids the crash while preserving the default behavior of
installing the language packs.
This commit is contained in:
Carlos Nihelton 2023-01-12 16:57:52 -03:00
parent 59f167c12b
commit 41a2427704
No known key found for this signature in database
GPG Key ID: 6FE346D245197E9A
1 changed files with 2 additions and 2 deletions

View File

@ -225,8 +225,8 @@ class ConfigureController(SubiquityController):
return True return True
cmd = [] cmd = []
if self.model.wslsetupoptions.wslsetupoptions.\ opts = self.model.wslsetupoptions.wslsetupoptions
install_language_support_packages is True: if opts is None or opts.install_language_support_packages is True:
cmd = [aptCommand, "install", "-y"] cmd = [aptCommand, "install", "-y"]
else: else: