Settings: Minor cleanup

This commit is contained in:
Vishesh Handa
2021-07-29 18:14:52 +02:00
parent e929e8933e
commit bb3afd92cf

View File

@ -90,8 +90,9 @@ class GitJournalRepo with ChangeNotifier {
// logEvent(Event.Settings, parameters: settings.toLoggableMap()); // logEvent(Event.Settings, parameters: settings.toLoggableMap());
Log.i("StorageConfig ${storageConfig.toLoggableMap()}"); Log.i("StorageConfig ${storageConfig.toLoggableMap()}");
Log.i("GitConfig ${gitConfig.toLoggableMap()}");
Log.i("FolderConfig ${folderConfig.toLoggableMap()}"); Log.i("FolderConfig ${folderConfig.toLoggableMap()}");
Log.i("GitConfig ${gitConfig.toLoggableMap()}");
Log.i("Settings ${settings.toLoggableMap()}");
var repoPath = await storageConfig.buildRepoPath(gitBaseDir); var repoPath = await storageConfig.buildRepoPath(gitBaseDir);
Log.i("Loading Repo at path $repoPath"); Log.i("Loading Repo at path $repoPath");
@ -450,9 +451,10 @@ class GitJournalRepo with ChangeNotifier {
} }
Future _persistConfig() async { Future _persistConfig() async {
await settings.save();
await storageConfig.save(); await storageConfig.save();
await folderConfig.save();
await gitConfig.save(); await gitConfig.save();
await settings.save();
} }
Future<void> moveRepoToPath() async { Future<void> moveRepoToPath() async {