summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-24 01:12:01 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-24 01:12:01 +0200
commita0a49b6c2a3cf48cb4e979a92cd2065a51bff775 (patch)
treef9316cc3a1c3ceca6c875bc166a528b9cab03385 /resources
parentMerge branch 'ignore-users' of github.com:NepNep21/nheko into ignore-users (diff)
downloadnheko-a0a49b6c2a3cf48cb4e979a92cd2065a51bff775.tar.xz
Cleanup ignore user functionality slightly
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/dialogs/UserProfile.qml9
1 files changed, 4 insertions, 5 deletions
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 {