#105 new: switch of auto check update

This commit is contained in:
lollipopkit
2023-08-07 13:30:53 +08:00
parent 879a347f23
commit 98e77b9d0f
14 changed files with 44 additions and 2 deletions

View File

@@ -330,7 +330,9 @@ class _HomePageState extends State<HomePage>
@override
Future<void> afterFirstLayout(BuildContext context) async {
doUpdate(context);
if (_setting.autoCheckAppUpdate.fetch()!) {
doUpdate(context);
}
updateHomeWidget();
await GetIt.I.allReady();
await _serverProvider.loadLocalData();