From fac0fbb0e14784cbf114815b86ff612db352c9d5 Mon Sep 17 00:00:00 2001 From: krawieck Date: Thu, 3 Dec 2020 22:43:26 +0100 Subject: [PATCH] add lemmy.ml instance at startup if there's no instances added --- lib/main.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 7ef9a61..14e9092 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -22,6 +22,10 @@ Future main() async { final accountsStore = AccountsStore(); await accountsStore.load(); + if (accountsStore.instances.isEmpty) { + accountsStore.addInstance('lemmy.ml'); + } + runApp( MultiProvider( providers: [