diff --git a/Mlem/Views/Tabs/Profile/Profile View.swift b/Mlem/Views/Tabs/Profile/Profile View.swift index 2cede85e9..ff33b1924 100644 --- a/Mlem/Views/Tabs/Profile/Profile View.swift +++ b/Mlem/Views/Tabs/Profile/Profile View.swift @@ -7,10 +7,7 @@ import SwiftUI -// Profile tab view struct ProfileView: View { - // appstorage - @AppStorage("shouldShowUserHeaders") var shouldShowUserHeaders: Bool = true let user: UserModel? diff --git a/Mlem/Window.swift b/Mlem/Window.swift index 49da35c05..321820bba 100644 --- a/Mlem/Window.swift +++ b/Mlem/Window.swift @@ -23,6 +23,7 @@ struct Window: View { @StateObject var appState: AppState = .init() @State var flow: AppFlow + @State var loadedInitialFlow: Bool = false var body: some View { content @@ -38,7 +39,12 @@ struct Window: View { } flowDidChange() } - .onAppear(perform: flowDidChange) + .onAppear { + if !loadedInitialFlow { + flowDidChange() + loadedInitialFlow = true + } + } .environment(\.setAppFlow, setFlow) }