Commit e7f8c1ef authored by David Redondo's avatar David Redondo 🏎
Browse files

Disable interacting with the user list if it doesn't make sense

On the lockscreen or on a single user system you can currently move the user
item horizontally across the screen without it doing anything. If the list only
contains one entry, disable interacting with it.
parent 5f13bcab
......@@ -41,6 +41,9 @@ ListView {
preferredHighlightBegin: width/2 - userItemWidth/2
preferredHighlightEnd: preferredHighlightBegin
// Disable flicking if we only have on user (like on the lockscreen)
interactive: count > 1
delegate: UserDelegate {
avatarPath: model.icon || ""
iconSource: model.iconName || "user-identity"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment