mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +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) {
|
void completeGitHostSetup(String subFolder) {
|
||||||
setState(() async {
|
() async {
|
||||||
appState.remoteGitRepoConfigured = true;
|
appState.remoteGitRepoConfigured = true;
|
||||||
appState.remoteGitRepoFolderName = "journal";
|
appState.remoteGitRepoFolderName = "journal";
|
||||||
appState.remoteGitRepoSubFolder = subFolder;
|
appState.remoteGitRepoSubFolder = subFolder;
|
||||||
@ -250,7 +250,9 @@ class StateContainerState extends State<StateContainer> {
|
|||||||
await _persistConfig();
|
await _persistConfig();
|
||||||
_loadNotesFromDisk();
|
_loadNotesFromDisk();
|
||||||
_syncNotes();
|
_syncNotes();
|
||||||
});
|
|
||||||
|
setState(() {});
|
||||||
|
}();
|
||||||
}
|
}
|
||||||
|
|
||||||
void completeOnBoarding() {
|
void completeOnBoarding() {
|
||||||
|
Reference in New Issue
Block a user