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
|
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:
|
||||||
|
|
Loading…
Reference in New Issue