diff --git a/lib/main.dart b/lib/main.dart index 8296d739a..2a8335110 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -254,6 +254,7 @@ class _MaterialAppWithThemeState extends ConsumerState _desktopHasPassword = await ref.read(storageCryptoHandlerProvider).hasPassword(); } + await MainDB.instance.initMainDB(); } Future load() async { @@ -267,8 +268,6 @@ class _MaterialAppWithThemeState extends ConsumerState await loadShared(); } - await MainDB.instance.initMainDB(); - _notificationsService = ref.read(notificationsProvider); _nodeService = ref.read(nodeServiceChangeNotifierProvider); _tradesService = ref.read(tradesServiceProvider);