From c962ae3a43c3611408295f97805908b4491a7357 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 22 Nov 2024 15:47:40 +0100 Subject: [PATCH] fix spelling os UserStatus qml type when setting user status Signed-off-by: Matthieu Gallien --- src/gui/UserStatusSelector.qml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/gui/UserStatusSelector.qml b/src/gui/UserStatusSelector.qml index e20f58890..3e303b469 100644 --- a/src/gui/UserStatusSelector.qml +++ b/src/gui/UserStatusSelector.qml @@ -54,36 +54,36 @@ ColumnLayout { } UserStatusSelectorButton { - checked: userStatusSelectorModel.onlineStatus === NC.userStatus.Online + checked: userStatusSelectorModel.onlineStatus === NC.UserStatus.Online checkable: true icon.source: userStatusSelectorModel.onlineIcon icon.color: "transparent" text: qsTr("Online") - onClicked: userStatusSelectorModel.onlineStatus = NC.userStatus.Online + onClicked: userStatusSelectorModel.onlineStatus = NC.UserStatus.Online Layout.fillWidth: true implicitWidth: 200 // Pretty much a hack to ensure all the buttons are equal in width } UserStatusSelectorButton { - checked: userStatusSelectorModel.onlineStatus === NC.userStatus.Away + checked: userStatusSelectorModel.onlineStatus === NC.UserStatus.Away checkable: true icon.source: userStatusSelectorModel.awayIcon icon.color: "transparent" text: qsTr("Away") - onClicked: userStatusSelectorModel.onlineStatus = NC.userStatus.Away + onClicked: userStatusSelectorModel.onlineStatus = NC.UserStatus.Away Layout.fillWidth: true implicitWidth: 200 // Pretty much a hack to ensure all the buttons are equal in width } UserStatusSelectorButton { - checked: userStatusSelectorModel.onlineStatus === NC.userStatus.DoNotDisturb + checked: userStatusSelectorModel.onlineStatus === NC.UserStatus.DoNotDisturb checkable: true icon.source: userStatusSelectorModel.dndIcon icon.color: "transparent" text: qsTr("Do not disturb") secondaryText: qsTr("Mute all notifications") - onClicked: userStatusSelectorModel.onlineStatus = NC.userStatus.DoNotDisturb + onClicked: userStatusSelectorModel.onlineStatus = NC.UserStatus.DoNotDisturb Layout.fillWidth: true implicitWidth: 200 // Pretty much a hack to ensure all the buttons are equal in width @@ -92,14 +92,14 @@ ColumnLayout { Component.onCompleted: topButtonsLayout.updateMaxButtonHeight(implicitHeight) } UserStatusSelectorButton { - checked: userStatusSelectorModel.onlineStatus === NC.userStatus.Invisible || - userStatusSelectorModel.onlineStatus === NC.userStatus.Offline + checked: userStatusSelectorModel.onlineStatus === NC.UserStatus.Invisible || + userStatusSelectorModel.onlineStatus === NC.UserStatus.Offline checkable: true icon.source: userStatusSelectorModel.invisibleIcon icon.color: "transparent" text: qsTr("Invisible") secondaryText: qsTr("Appear offline") - onClicked: userStatusSelectorModel.onlineStatus = NC.userStatus.Invisible + onClicked: userStatusSelectorModel.onlineStatus = NC.UserStatus.Invisible Layout.fillWidth: true implicitWidth: 200 // Pretty much a hack to ensure all the buttons are equal in width