mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-31 13:02:11 +00:00
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 modalType: ModalType?
|
||||||
|
|
||||||
@State private var alertType: AlertType?
|
@State private var alertType: AlertType?
|
||||||
@ -83,10 +81,6 @@ struct OrganizerView: View {
|
|||||||
|
|
||||||
private let redditURL = Constants.URLs.subreddit
|
private let redditURL = Constants.URLs.subreddit
|
||||||
|
|
||||||
init() {
|
|
||||||
appManager = .shared
|
|
||||||
}
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
debugChanges()
|
debugChanges()
|
||||||
return ZStack {
|
return ZStack {
|
||||||
|
@ -50,7 +50,6 @@ public class ProfileManager: ObservableObject {
|
|||||||
public var activeProfileId: UUID? {
|
public var activeProfileId: UUID? {
|
||||||
willSet {
|
willSet {
|
||||||
willUpdateActiveId.send(newValue)
|
willUpdateActiveId.send(newValue)
|
||||||
objectWillChange.send()
|
|
||||||
}
|
}
|
||||||
didSet {
|
didSet {
|
||||||
pp_log.debug("Active profile updated: \(activeProfileId?.uuidString ?? "nil")")
|
pp_log.debug("Active profile updated: \(activeProfileId?.uuidString ?? "nil")")
|
||||||
|
Loading…
Reference in New Issue
Block a user