fix: Incorrect strings and logics (#1619)

This commit is contained in:
aAbed
2024-01-12 04:00:37 +05:45
committed by GitHub
parent 0d45fe4a97
commit 4f22e88e42
6 changed files with 26 additions and 19 deletions

View File

@ -40,12 +40,11 @@ class HomeViewModel extends BaseViewModel {
Future<void> initialize(BuildContext context) async {
_managerAPI.rePatchedSavedApps().then((_) => _getPatchedApps());
_latestManagerVersion = await _managerAPI.getLatestManagerVersion();
if (!_managerAPI.getPatchesConsent()) {
await showPatchesConsent(context);
}
_latestManagerVersion = await _managerAPI.getLatestManagerVersion();
await _patcherAPI.initialize();
await flutterLocalNotificationsPlugin.initialize(