Move to iCloud: Clear the git repo state

This commit is contained in:
Vishesh Handa
2020-10-21 16:26:40 +02:00
parent 1dda2ce1c0
commit c72cf0f96f

View File

@ -404,6 +404,9 @@ class StateContainer with ChangeNotifier {
await Directory(repoPath).delete(recursive: true);
repoPath = newRepoPath;
_gitRepo = GitNoteRepository(gitDirPath: repoPath, settings: settings);
_notesCache.clear();
appState.notesFolder.reset(repoPath);
notifyListeners();