FolderListing: Show the full path of subfolders

It's confusing otherwise, though this doesn't look very pretty.
This commit is contained in:
Vishesh Handa
2019-12-14 12:18:52 +01:00
parent 0bde0d8fae
commit 3657a88ce5
2 changed files with 8 additions and 1 deletions

View File

@ -274,6 +274,13 @@ class NotesFolder with ChangeNotifier implements Comparable<NotesFolder> {
notifyListeners();
}
String pathSpec() {
if (parent == null) {
return "";
}
return p.join(parent.pathSpec(), name);
}
@override
int compareTo(NotesFolder other) {
return folderPath.compareTo(other.folderPath);

View File

@ -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(