setState may not be async

This commit is contained in:
Vishesh Handa
2019-06-02 15:56:36 +02:00
parent c79249cbe1
commit 2bfd6ea199

View File

@ -229,7 +229,7 @@ class StateContainerState extends State<StateContainer> {
}
void completeGitHostSetup(String subFolder) {
setState(() async {
() async {
appState.remoteGitRepoConfigured = true;
appState.remoteGitRepoFolderName = "journal";
appState.remoteGitRepoSubFolder = subFolder;
@ -250,7 +250,9 @@ class StateContainerState extends State<StateContainer> {
await _persistConfig();
_loadNotesFromDisk();
_syncNotes();
});
setState(() {});
}();
}
void completeOnBoarding() {