init before app launch

This commit is contained in:
mertalev
2025-09-02 12:29:31 -04:00
parent 740c50122e
commit 88b6da5e0a

View File

@@ -114,6 +114,8 @@ Future<void> initApp() async {
yield LicenseEntryWithLineBreaks([license.key], license.value);
}
});
await NetworkRepository.init();
}
class ImmichApp extends ConsumerStatefulWidget {
@@ -167,7 +169,6 @@ class ImmichAppState extends ConsumerState<ImmichApp> with WidgetsBindingObserve
}
SystemChrome.setSystemUIOverlayStyle(overlayStyle);
await ref.read(localNotificationService).setup();
await NetworkRepository.init();
}
Future<DeepLink> _deepLinkBuilder(PlatformDeepLink deepLink) async {