diff --git a/lib/core/notes_folder.dart b/lib/core/notes_folder.dart index b7b6eae9..7cfe578e 100644 --- a/lib/core/notes_folder.dart +++ b/lib/core/notes_folder.dart @@ -274,6 +274,13 @@ class NotesFolder with ChangeNotifier implements Comparable { notifyListeners(); } + String pathSpec() { + if (parent == null) { + return ""; + } + return p.join(parent.pathSpec(), name); + } + @override int compareTo(NotesFolder other) { return folderPath.compareTo(other.folderPath); diff --git a/lib/screens/journal_listing.dart b/lib/screens/journal_listing.dart index d5bd7b81..a5a1d493 100644 --- a/lib/screens/journal_listing.dart +++ b/lib/screens/journal_listing.dart @@ -43,7 +43,7 @@ class JournalListingScreen extends StatelessWidget { emptyText: "Why not add your first\n Journal Entry?", ); - var title = notesFolder.parent == null ? "Notes" : notesFolder.name; + var title = notesFolder.parent == null ? "Notes" : notesFolder.pathSpec(); return Scaffold( appBar: AppBar(