From 55822788cb012bde2485141400d8b87468cfd3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Chiotti?= <44336112+maelchiotti@users.noreply.github.com> Date: Fri, 8 Aug 2025 18:59:29 +0200 Subject: [PATCH] [488] fix: hide the content of locked notes on the notes tiles --- lib/common/widgets/notes/note_tile.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/common/widgets/notes/note_tile.dart b/lib/common/widgets/notes/note_tile.dart index ea14d1bb..ecc8aa77 100644 --- a/lib/common/widgets/notes/note_tile.dart +++ b/lib/common/widgets/notes/note_tile.dart @@ -212,8 +212,10 @@ class _NoteTileState extends ConsumerState { final layout = ref.watch(preferencesProvider.select((preferences) => preferences.layout)); final showContent = - // Do not show only the title and the preview content is not empty - (!showTitlesOnly && !widget.note.isContentPreviewEmpty) || + // The note is locked + !lockNote && + // Do not show only the title and the preview content is not empty + (!showTitlesOnly && !widget.note.isContentPreviewEmpty) || // Show only the title and the title is not empty (showTitlesOnly && widget.note.isTitleEmpty) || // In search view, do not show only the title and the preview content is not empty