Move more security and safety-relevant options to a better suited page

This includes the "show link previews", and "enable typing
notifications" options. I also re-arranged the Security & Safety page
into more sensible groups, and in preparation for more invite options.
This commit is contained in:
Joshua Goins
2026-02-19 17:29:17 -05:00
parent 4078d3f2dc
commit 3a964bae20
3 changed files with 45 additions and 44 deletions

View File

@@ -333,22 +333,6 @@ FormCard.FormCardPage {
NeoChatConfig.save();
}
}
FormCard.FormDelegateSeparator {
above: showLocalMessagesOnRightDelegate
below: showLinkPreviewDelegate
}
FormCard.FormCheckDelegate {
id: showLinkPreviewDelegate
text: i18nc("@label:checkbox", "Show link previews")
description: i18nc("@info:label", "You can customize this per-room under room settings. If unchecked, disables link previews in every room.")
checked: NeoChatConfig.showLinkPreview
onToggled: {
NeoChatConfig.showLinkPreview = checked;
NeoChatConfig.save();
}
}
}
FormCard.FormHeader {

View File

@@ -274,20 +274,6 @@ FormCard.FormCardPage {
NeoChatConfig.save();
}
}
FormCard.FormDelegateSeparator {
above: quickEditCheckbox
below: typingNotificationsDelegate
}
FormCard.FormCheckDelegate {
id: typingNotificationsDelegate
text: i18n("Send typing notifications")
checked: NeoChatConfig.typingNotifications
enabled: !NeoChatConfig.isTypingNotificationsImmutable
onToggled: {
NeoChatConfig.typingNotifications = checked;
NeoChatConfig.save();
}
}
}
FormCard.FormHeader {
title: i18n("Developer Settings")

View File

@@ -37,8 +37,38 @@ FormCard.FormCardPage {
title: i18nc("@title:window", "Ignored Users")
});
}
}
FormCard.FormHeader {
title: i18nc("@title:group", "Messages")
}
FormCard.FormCard {
FormCard.FormCheckDelegate {
id: showLinkPreviewDelegate
text: i18nc("@label:checkbox", "Show link previews")
description: i18nc("@info:label", "You can customize this per-room under room settings. If unchecked, disables link previews in every room.")
checked: NeoChatConfig.showLinkPreview
onToggled: {
NeoChatConfig.showLinkPreview = checked;
NeoChatConfig.save();
}
}
FormCard.FormDelegateSeparator {
above: ignoredUsersDelegate
above: showLinkPreviewDelegate
below: typingNotificationsDelegate
}
FormCard.FormCheckDelegate {
id: typingNotificationsDelegate
text: i18nc("@label:checkbox", "Send typing notifications")
checked: NeoChatConfig.typingNotifications
enabled: !NeoChatConfig.isTypingNotificationsImmutable
onToggled: {
NeoChatConfig.typingNotifications = checked;
NeoChatConfig.save();
}
}
FormCard.FormDelegateSeparator {
above: typingNotificationsDelegate
below: hideImagesDelegate
}
FormCard.FormCheckDelegate {
@@ -52,10 +82,11 @@ FormCard.FormCardPage {
NeoChatConfig.save();
}
}
FormCard.FormDelegateSeparator {
above: hideImagesDelegate
below: rejectInvitationsDelegate
}
}
FormCard.FormHeader {
title: i18nc("@title:group", "Invites")
}
FormCard.FormCard {
FormCard.FormCheckDelegate {
id: rejectInvitationsDelegate
text: i18nc("@option:check", "Reject invitations from unknown users")
@@ -67,10 +98,11 @@ FormCard.FormCardPage {
NeoChatConfig.save();
}
}
FormCard.FormDelegateSeparator {
above: rejectInvitationsDelegate
below: preferEncryptionDelegate
}
}
FormCard.FormHeader {
title: i18nc("@title:group", "Encryption")
}
FormCard.FormCard {
FormCard.FormCheckDelegate {
id: preferEncryptionDelegate
text: i18nc("@option:check", "Turn on encryption in new chats")
@@ -82,11 +114,10 @@ FormCard.FormCardPage {
NeoChatConfig.save();
}
}
}
FormCard.FormHeader {
title: i18nc("@title:group", "Encryption")
}
FormCard.FormCard {
FormCard.FormDelegateSeparator {
above: preferEncryptionDelegate
below: secretBackupDelegate
}
FormCard.FormButtonDelegate {
id: secretBackupDelegate
text: i18nc("@action:inmenu", "Manage Key Storage")