[displaymanager] Expand check for no-DMs

- The message refers to an empty list or unset variable,
   but the if only checked for unset. Also bail out if
   the list is empty.
This commit is contained in:
Adriaan de Groot 2018-08-20 11:06:49 -04:00
parent 2d0660a54a
commit 59a003a41f

View File

@ -724,7 +724,7 @@ def run():
if libcalamares.globalstorage.contains("displayManagers"): if libcalamares.globalstorage.contains("displayManagers"):
displaymanagers = libcalamares.globalstorage.value("displayManagers") displaymanagers = libcalamares.globalstorage.value("displayManagers")
if displaymanagers is None: if not displaymanagers:
return ( return (
"No display managers selected for the displaymanager module.", "No display managers selected for the displaymanager module.",
"The displaymanagers list is empty or undefined in both" "The displaymanagers list is empty or undefined in both"