mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make Sidebar expansion state available to SidebarModel
This commit is contained in:
@@ -10,10 +10,9 @@ import SwiftUI
|
||||
import Combine
|
||||
import Account
|
||||
|
||||
final class SidebarExpandedContainers: ObservableObject {
|
||||
struct SidebarExpandedContainers {
|
||||
|
||||
@Published var expandedTable = [ContainerIdentifier: Bool]()
|
||||
var objectDidChange = PassthroughSubject<Void, Never>()
|
||||
var expandedTable = [ContainerIdentifier: Bool]()
|
||||
|
||||
var data: Data {
|
||||
get {
|
||||
@@ -41,7 +40,6 @@ final class SidebarExpandedContainers: ObservableObject {
|
||||
}
|
||||
set(newValue) {
|
||||
expandedTable[containerID] = newValue
|
||||
objectDidChange.send()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user