Add the concept of Folder Settings

This contains the default editor / view / sortingMode / etc. For now the
folder settings are shared among all Folders. But the idea is that we
should be able to set different settings per folder (real or virtual)
This commit is contained in:
Vishesh Handa
2020-03-31 11:13:08 +02:00
parent c2b78f0ae7
commit 965639e6f2
12 changed files with 126 additions and 83 deletions

View File

@ -341,4 +341,14 @@ class NotesFolderFS with NotesFolderNotifier implements NotesFolder {
return null;
}
@override
NotesFolderConfig get config {
return NotesFolderConfig.fromSettings();
}
@override
set config(NotesFolderConfig conf) {
conf.save();
}
}