Add import task

This commit is contained in:
2024-08-10 07:33:29 +00:00
committed by GitHub
parent 92646cfaa9
commit 79e1ca9bbe
17 changed files with 797 additions and 145 deletions

View File

@@ -131,10 +131,14 @@ class _ServerUrlSettingsPage extends State<ServerUrlSettingsPage>
.setString('baseUrl', _serverUrl + _apiPath)
.then((re) {
if (re) {
tryInitApi(context);
context.canPop()
? context.pop()
: context.go("/");
if (context.mounted) {
tryInitApi(context);
context.canPop()
? context.pop()
: context.go("/");
} else {
_log.warning("Context not mounted.");
}
}
});
}