mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
setState may not be async
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user