From 97143cb05b4f4cc3be00e7db3fad697385645117 Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Sat, 12 Oct 2024 13:33:50 +0200 Subject: [PATCH] Do not display the grid of ZIMs for custom apps --- Views/Welcome.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Views/Welcome.swift b/Views/Welcome.swift index c7702322..a0f2145a 100644 --- a/Views/Welcome.swift +++ b/Views/Welcome.swift @@ -37,7 +37,7 @@ struct Welcome: View { let showLibrary: (() -> Void)? var body: some View { - if zimFiles.isEmpty { + if zimFiles.isEmpty || !FeatureFlags.hasLibrary { ZStack { LogoView() welcomeContent @@ -56,7 +56,7 @@ struct Welcome: View { } } }.ignoresSafeArea() - } else { + } else if FeatureFlags.hasLibrary { LazyVGrid( columns: ([GridItem(.adaptive(minimum: 250, maximum: 500), spacing: 12)]), alignment: .leading,