mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 00:29:20 +08:00
FolderListing: Show the full path of subfolders
It's confusing otherwise, though this doesn't look very pretty.
This commit is contained in:
@ -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);
|
||||
|
@ -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(
|
||||
|
Reference in New Issue
Block a user