From a0a49b6c2a3cf48cb4e979a92cd2065a51bff775 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 24 Oct 2023 01:12:01 +0200 Subject: Cleanup ignore user functionality slightly --- resources/qml/dialogs/UserProfile.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'resources') diff --git a/resources/qml/dialogs/UserProfile.qml b/resources/qml/dialogs/UserProfile.qml index 3d65d52a..989c2bab 100644 --- a/resources/qml/dialogs/UserProfile.qml +++ b/resources/qml/dialogs/UserProfile.qml @@ -295,11 +295,10 @@ ApplicationWindow { image: ":/icons/icons/ui/volume-off-indicator.svg" hoverEnabled: true ToolTip.visible: hovered - ToolTip.text: qsTr("Ignore the user.") - onClicked: { - profile.ignoredStatus(profile.userid, true) - } - visible: !profile.isSelf && !profile.isGlobalUserProfile + ToolTip.text: profile.ignored ? qsTr("Unignore the user.") : qsTr("Ignore the user.") + buttonTextColor: profile.ignored ? Nheko.theme.red : palette.buttonText + onClicked: profile.ignored = !profile.ignored + visible: !profile.isSelf } ImageButton { -- cgit 1.4.1