mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 22:39:34 +00:00
123
This commit is contained in:
parent
04fe06d1ac
commit
bd9e985697
13 changed files with 1036 additions and 878 deletions
|
|
@ -81,9 +81,10 @@ class AbsApp extends ConsumerWidget {
|
|||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final servers = ref.watch(audiobookShelfServerProvider);
|
||||
final apiSettings = ref.watch(apiSettingsProvider);
|
||||
final activeUser =
|
||||
ref.watch(apiSettingsProvider.select((v) => v.activeUser));
|
||||
|
||||
final needOnboarding = apiSettings.activeUser == null || servers.isEmpty;
|
||||
final needOnboarding = activeUser == null || servers.isEmpty;
|
||||
|
||||
if (needOnboarding) {
|
||||
routerConfig.goNamed(Routes.onboarding.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue