init before app launch

This commit is contained in:
mertalev
2025-09-02 12:29:31 -04:00
parent 66a0e04489
commit 1e0e0d8066

View File

@@ -121,6 +121,8 @@ Future<void> initApp() async {
yield LicenseEntryWithLineBreaks([license.key], license.value);
}
});
await NetworkRepository.init();
}
class ImmichApp extends ConsumerStatefulWidget {
@@ -174,7 +176,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 {