From 6d69217cae57efe4f846c14efd9eb50cc3d21ac6 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 1 Mar 2020 13:14:13 +0100 Subject: [PATCH] JournalList: Show the filename as the title when no metadata is allowed Fixes #72 --- lib/widgets/journal_list.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/journal_list.dart b/lib/widgets/journal_list.dart index 9f8828a7..3ab4d568 100644 --- a/lib/widgets/journal_list.dart +++ b/lib/widgets/journal_list.dart @@ -144,7 +144,7 @@ class _JournalListState extends State { Widget _buildRow(BuildContext context, Note note) { var textTheme = Theme.of(context).textTheme; - var title = note.title; + var title = note.canHaveMetadata ? note.title : note.fileName; Widget titleWidget = Text(title, style: textTheme.title); if (title.isEmpty) { var date = note.modified ?? note.created ?? note.fileLastModified;