Add an option to hide images and videos by default

Implements #658
This commit is contained in:
Tobias Fella
2024-08-23 17:07:00 +02:00
parent 72994248fa
commit c0151353c5
6 changed files with 92 additions and 5 deletions

View File

@@ -193,6 +193,23 @@ FormCard.FormCardPage {
NeoChatConfig.save();
}
}
FormCard.FormDelegateSeparator {
above: showAvatarChangeDelegate
below: hideImagesDelegate
}
FormCard.FormCheckDelegate {
id: hideImagesDelegate
text: i18nc("@label:checkbox", "Hide image and video events by default")
description: i18nc("@info", "When this option is enabled, images and videos are only shown after a button is clicked.")
checked: NeoChatConfig.hideImages
enabled: !NeoChatConfig.isHideImagesImmutable
onToggled: {
NeoChatConfig.hideImages = checked;
NeoChatConfig.save();
}
}
}
FormCard.FormHeader {
title: i18nc("Chat Editor", "Editor")