add lemmy.ml instance at startup if there's no instances added
This commit is contained in:
parent
9a7c423c21
commit
fac0fbb0e1
|
@ -22,6 +22,10 @@ Future<void> main() async {
|
||||||
final accountsStore = AccountsStore();
|
final accountsStore = AccountsStore();
|
||||||
await accountsStore.load();
|
await accountsStore.load();
|
||||||
|
|
||||||
|
if (accountsStore.instances.isEmpty) {
|
||||||
|
accountsStore.addInstance('lemmy.ml');
|
||||||
|
}
|
||||||
|
|
||||||
runApp(
|
runApp(
|
||||||
MultiProvider(
|
MultiProvider(
|
||||||
providers: [
|
providers: [
|
||||||
|
|
Loading…
Reference in New Issue