init before app launch

This commit is contained in:
mertalev
2025-09-02 12:29:31 -04:00
parent 3a2b572e0b
commit 8d272f8abc

View File

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