From 1e8d8f749abc61e6b28b9db9f44c7abab17e6544 Mon Sep 17 00:00:00 2001 From: aAbed Date: Sat, 30 Sep 2023 14:57:48 +0545 Subject: [PATCH] fix: do not ask for patches consent before initializing model --- lib/ui/views/home/home_viewmodel.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ui/views/home/home_viewmodel.dart b/lib/ui/views/home/home_viewmodel.dart index 7ff6d1bb..69ce644d 100644 --- a/lib/ui/views/home/home_viewmodel.dart +++ b/lib/ui/views/home/home_viewmodel.dart @@ -41,11 +41,10 @@ class HomeViewModel extends BaseViewModel { File? downloadedApk; Future initialize(BuildContext context) async { + _latestManagerVersion = await _managerAPI.getLatestManagerVersion(); if (!_managerAPI.getPatchesConsent()) { await showPatchesConsent(context); } - - _latestManagerVersion = await _managerAPI.getLatestManagerVersion(); await _patcherAPI.initialize(); await flutterLocalNotificationsPlugin.initialize( const InitializationSettings(