Fix "No profiles" message flashing on launch (#1147)

Due to a regression in #1135
This commit is contained in:
Davide 2025-02-07 17:58:23 +01:00 committed by GitHub
parent eb32aed2a4
commit d51c60c5c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,8 +109,9 @@ private struct ContainerModifier: ViewModifier {
func body(content: Content) -> some View { func body(content: Content) -> some View {
debugChanges() debugChanges()
return content return content
.themeEmpty( .themeProgress(
if: !profileManager.hasProfiles, if: !profileManager.isReady,
isEmpty: !profileManager.hasProfiles,
emptyContent: emptyView emptyContent: emptyView
) )
.searchable(text: $search) .searchable(text: $search)