Add a .gitjournal.yaml file in a folder

This file will be added to save the settings of how we want that folder
to behave. For example - default Editor, view, sorting mode, etc.

This feature is currently disabled as it will only be a part of the pro
mode.
This commit is contained in:
Vishesh Handa
2020-03-31 14:02:38 +02:00
parent 3c2d4b0f74
commit fe08b53539
9 changed files with 118 additions and 15 deletions

View File

@ -35,12 +35,12 @@ class VirtualNotesFolder with NotesFolderNotifier implements NotesFolder {
@override
NotesFolderConfig get config {
return NotesFolderConfig.fromSettings();
return NotesFolderConfig.fromSettings(fsFolder);
}
@override
set config(NotesFolderConfig conf) {
assert(false, "A Virtual Notes Folder Config cannot change");
conf.save();
conf.saveToSettings();
}
}