Strip a few unnecessary publishers

- Drop unused AppManager from OrganizerView

- Do not notify ProfileManager subscribers on activeProfileId

Saved active profile is already notified by:

- Core Data
- AppManager
This commit is contained in:
Davide De Rosa 2022-04-22 14:46:19 +02:00
parent bb2ba19326
commit 8838e9d130
2 changed files with 0 additions and 7 deletions

View File

@ -69,8 +69,6 @@ struct OrganizerView: View {
}
}
@ObservedObject private var appManager: AppManager
@State private var modalType: ModalType?
@State private var alertType: AlertType?
@ -83,10 +81,6 @@ struct OrganizerView: View {
private let redditURL = Constants.URLs.subreddit
init() {
appManager = .shared
}
var body: some View {
debugChanges()
return ZStack {

View File

@ -50,7 +50,6 @@ public class ProfileManager: ObservableObject {
public var activeProfileId: UUID? {
willSet {
willUpdateActiveId.send(newValue)
objectWillChange.send()
}
didSet {
pp_log.debug("Active profile updated: \(activeProfileId?.uuidString ?? "nil")")