Fix invisible user status selector button not being checked when user is in Offline...
authorClaudio Cambra <claudio.cambra@gmail.com>
Wed, 5 Oct 2022 19:44:02 +0000 (21:44 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 12 Oct 2022 10:01:11 +0000 (10:01 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
src/gui/UserStatusSelector.qml

index f7ec750270ffcca966b3ca01052e4693422b20c7..f03a36dd26bdfcfd1a3dc5238ab9e2f00371f558 100644 (file)
@@ -92,7 +92,8 @@ ColumnLayout {
                 Component.onCompleted: topButtonsLayout.updateMaxButtonHeight(implicitHeight)
             }
             UserStatusSelectorButton {
-                checked: userStatusSelectorModel.onlineStatus === NC.UserStatus.Invisible
+                checked: userStatusSelectorModel.onlineStatus === NC.UserStatus.Invisible ||
+                         userStatusSelectorModel.onlineStatus === NC.UserStatus.Offline
                 checkable: true
                 icon.source: userStatusSelectorModel.invisibleIcon
                 icon.color: "transparent"