Do not observe AppManager, just use for migrations

This commit is contained in:
Davide De Rosa 2022-04-29 17:41:31 +02:00
parent 7ba41a0e73
commit 4d13d8bf6b
1 changed files with 1 additions and 4 deletions

View File

@ -28,8 +28,6 @@ import PassepartoutCore
extension OrganizerView {
struct ProfilesList: View {
@ObservedObject private var appManager: AppManager
@ObservedObject private var profileManager: ProfileManager
@ObservedObject private var providerManager: ProviderManager
@ -44,7 +42,6 @@ extension OrganizerView {
@State private var isPresentingProfile = false
init(alertType: Binding<AlertType?>) {
appManager = .shared
profileManager = .shared
providerManager = .shared
productManager = .shared
@ -195,7 +192,7 @@ extension OrganizerView.ProfilesList {
private func performMigrationsIfNeeded() {
Task {
await appManager.doMigrations(profileManager)
await AppManager.shared.doMigrations(profileManager)
}
}