Skip to content

Commit

Permalink
Propagate changes from UpdatesManager to AppState
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Jan 18, 2024
1 parent 3112565 commit 13c3274
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Ice/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class AppState: ObservableObject {
private(set) lazy var permissionsManager = PermissionsManager(appState: self)

/// Manager for app updates.
private(set) lazy var updatesManager = UpdatesManager()
let updatesManager = UpdatesManager()

/// The window that contains the settings interface.
private(set) weak var settingsWindow: NSWindow?
Expand Down Expand Up @@ -57,6 +57,11 @@ final class AppState: ObservableObject {
self?.objectWillChange.send()
}
.store(in: &c)
updatesManager.objectWillChange
.sink { [weak self] in
self?.objectWillChange.send()
}
.store(in: &c)

cancellables = c
}
Expand Down

0 comments on commit 13c3274

Please sign in to comment.