Do not display the grid of ZIMs for custom apps

This commit is contained in:
Balazs Perlaki-Horvath 2024-10-12 13:33:50 +02:00
parent 4cffee9f59
commit 97143cb05b

View File

@ -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,