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:
parent
59f167c12b
commit
41a2427704
|
@ -225,8 +225,8 @@ class ConfigureController(SubiquityController):
|
|||
return True
|
||||
|
||||
cmd = []
|
||||
if self.model.wslsetupoptions.wslsetupoptions.\
|
||||
install_language_support_packages is True:
|
||||
opts = self.model.wslsetupoptions.wslsetupoptions
|
||||
if opts is None or opts.install_language_support_packages is True:
|
||||
cmd = [aptCommand, "install", "-y"]
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue