Set a 'default' argument for audio and removed it as a requirement to continue. (#1081)

This commit is contained in:
Anton Hvornum 2022-04-25 09:29:12 +02:00 committed by GitHub
parent a14604a1b6
commit f10d8abb13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -118,7 +118,10 @@ class GlobalMenu(GeneralMenu):
self._menu_options['audio'] = \
Selector(
_('Select audio'),
lambda preset: ask_for_audio_selection(is_desktop_profile(storage['arguments'].get('profile', None)),preset))
lambda preset: ask_for_audio_selection(is_desktop_profile(storage['arguments'].get('profile', None)),preset),
display_func=lambda x: x if x else 'None',
default=None
)
self._menu_options['kernels'] = \
Selector(
_('Select kernels'),
@ -215,8 +218,6 @@ class GlobalMenu(GeneralMenu):
missing += ['Bootloader']
if not check('hostname'):
missing += ['Hostname']
if not check('audio'):
missing += ['Audio']
if not check('!root-password') and not check('!superusers'):
missing += [str(_('Either root-password or at least 1 superuser must be specified'))]
if not check('harddrives'):