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:
parent
bb2ba19326
commit
8838e9d130
|
@ -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 {
|
||||
|
|
|
@ -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")")
|
||||
|
|
Loading…
Reference in New Issue