Allow the condition for when messages are automatically marked as read to be configurable.
Title this adds a number of options for when messages should be automatically marked as read for the user to choose from.
{width=480 height=262}
This commit is contained in:
@@ -134,9 +134,45 @@ FormCard.FormCardPage {
|
||||
}
|
||||
}
|
||||
FormCard.FormHeader {
|
||||
title: i18n("Timeline Events")
|
||||
title: i18nc("@title", "Timeline")
|
||||
}
|
||||
FormCard.FormCard {
|
||||
FormCard.FormComboBoxDelegate {
|
||||
id: markAsReadCombo
|
||||
text: i18n("Mark messages as read when:")
|
||||
textRole: "name"
|
||||
valueRole: "value"
|
||||
model: [
|
||||
{
|
||||
name: i18n("Never"),
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
name: i18nc("@item:inlistbox As in mark messages in the room as read when entering the room", "Entering the room"),
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
name: i18nc("@item:inlistbox As in mark messages in the room as read when entering the room and all messages are visible on screen", "Entering the room and all unread messages are visible"),
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
name: i18nc("@item:inlistbox As in mark messages in the room as read when exiting the room", "Exiting the room"),
|
||||
value: 3
|
||||
},
|
||||
{
|
||||
name: i18nc("@item:inlistbox As in mark messages in the room as read when exiting the room and all messages are visible on screen", "Exiting the room and all unread messages are visible"),
|
||||
value: 4
|
||||
}
|
||||
]
|
||||
Component.onCompleted: currentIndex = NeoChatConfig.markReadCondition
|
||||
onCurrentValueChanged: NeoChatConfig.markReadCondition = currentValue
|
||||
}
|
||||
|
||||
FormCard.FormDelegateSeparator {
|
||||
above: markAsReadCombo
|
||||
below: showDeletedMessages
|
||||
}
|
||||
|
||||
FormCard.FormCheckDelegate {
|
||||
id: showDeletedMessages
|
||||
text: i18n("Show deleted messages")
|
||||
|
||||
Reference in New Issue
Block a user