mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 16:46:51 +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();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String pathSpec() {
|
||||||
|
if (parent == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
return p.join(parent.pathSpec(), name);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int compareTo(NotesFolder other) {
|
int compareTo(NotesFolder other) {
|
||||||
return folderPath.compareTo(other.folderPath);
|
return folderPath.compareTo(other.folderPath);
|
||||||
|
@ -43,7 +43,7 @@ class JournalListingScreen extends StatelessWidget {
|
|||||||
emptyText: "Why not add your first\n Journal Entry?",
|
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(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
Reference in New Issue
Block a user