mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue