mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-02 04:47:01 +08:00
Move to iCloud: Clear the git repo state
This commit is contained in:
@ -404,6 +404,9 @@ class StateContainer with ChangeNotifier {
|
|||||||
await Directory(repoPath).delete(recursive: true);
|
await Directory(repoPath).delete(recursive: true);
|
||||||
|
|
||||||
repoPath = newRepoPath;
|
repoPath = newRepoPath;
|
||||||
|
_gitRepo = GitNoteRepository(gitDirPath: repoPath, settings: settings);
|
||||||
|
|
||||||
|
_notesCache.clear();
|
||||||
appState.notesFolder.reset(repoPath);
|
appState.notesFolder.reset(repoPath);
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user