[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.
main
Adriaan de Groot 7 years ago
parent 2d0660a54a
commit 59a003a41f

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

Loading…
Cancel
Save