Compare commits

...

1 Commits

Author SHA1 Message Date
James Graham
e8b269869c Some people don't want friends so fix 2024-01-24 16:41:13 +00:00
2 changed files with 4 additions and 3 deletions

View File

@@ -224,7 +224,8 @@ Kirigami.Page {
Kirigami.ListSectionHeader {
height: implicitHeight
width: listView.width
label: roomListModel.categoryName(section)
label: root.connection.localUserId == "@nicofee:matrix.org" && roomListModel.categoryName(section) == "Friends" ? i18n("People I vaguely sometimes chat with and Nate Graham") : roomListModel.categoryName(section)
Component.onCompleted: _contents[0].wrapMode = Text.Wrap
action: Kirigami.Action {
onTriggered: roomListModel.setCategoryVisible(section, !roomListModel.categoryVisible(section))
}
@@ -235,7 +236,7 @@ Kirigami.Page {
width: Kirigami.Units.iconSizes.small
height: Kirigami.Units.iconSizes.small
}
text: roomListModel.categoryVisible(section) ? i18nc("Collapse <section name>", "Collapse %1", roomListModel.categoryName(section)) : i18nc("Expand <section name", "Expand %1", roomListModel.categoryName(section))
text: roomListModel.categoryVisible(section) ? i18nc("Collapse <section name>", "Collapse %1", root.connection.localUserId == "@nicofee:matrix.org" && roomListModel.categoryName(section) == "Friends" ? i18n("People I vaguely sometimes chat with and Nate Graham") : roomListModel.categoryName(section)) : i18nc("Expand <section name", "Expand %1", root.connection.localUserId == "@nicofee:matrix.org" && roomListModel.categoryName(section) == "Friends" ? i18n("People I vaguely sometimes chat with and Nate Graham") : roomListModel.categoryName(section))
display: QQC2.Button.IconOnly
QQC2.ToolTip.text: text

View File

@@ -102,7 +102,7 @@ QQC2.Control {
Layout.maximumHeight: width - Kirigami.Units.smallSpacing
Layout.topMargin: Kirigami.Units.smallSpacing / 2
text: i18nc("@button View all one-on-one chats with your friends.", "Friends")
text: root.connection.localUserId == "@nicofee:matrix.org" ? i18n("People I vaguely sometimes chat with and Nate Graham") : i18nc("@button View all one-on-one chats with your friends.", "Friends")
contentItem: Kirigami.Icon {
source: "system-users"
}