Sets WslSetupOptions as an optional controller
We have strong defaults, so the clients should only need to POST if the desired options are not the default ones.
This commit is contained in:
parent
1bf562c85a
commit
86d19c6259
|
@ -46,12 +46,14 @@ class WSLSetupOptionsController(SubiquityController):
|
||||||
|
|
||||||
# load the config file
|
# load the config file
|
||||||
data = default_loader()
|
data = default_loader()
|
||||||
|
conf_data = WSLSetupOptions()
|
||||||
|
|
||||||
if data:
|
if data:
|
||||||
proc_data = \
|
proc_data = \
|
||||||
{key: convert_if_bool(value) for (key, value) in data.items()}
|
{key: convert_if_bool(value) for (key, value) in data.items()}
|
||||||
conf_data = WSLSetupOptions(**proc_data)
|
conf_data = WSLSetupOptions(**proc_data)
|
||||||
self.model.apply_settings(conf_data)
|
|
||||||
|
self.model.apply_settings(conf_data)
|
||||||
|
|
||||||
def load_autoinstall_data(self, data):
|
def load_autoinstall_data(self, data):
|
||||||
if data is not None:
|
if data is not None:
|
||||||
|
|
Loading…
Reference in New Issue