[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:
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…
Reference in New Issue
Block a user