diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-24 01:12:01 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-24 01:12:01 +0200 |
commit | a0a49b6c2a3cf48cb4e979a92cd2065a51bff775 (patch) | |
tree | f9316cc3a1c3ceca6c875bc166a528b9cab03385 /resources | |
parent | Merge branch 'ignore-users' of github.com:NepNep21/nheko into ignore-users (diff) | |
download | nheko-a0a49b6c2a3cf48cb4e979a92cd2065a51bff775.tar.xz |
Cleanup ignore user functionality slightly
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/dialogs/UserProfile.qml | 9 |
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 { |