mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 11:16:59 +00:00
Save sidebar state. Fixes #3740
This commit is contained in:
1 parent
90101274b4
commit
a614f0306d
1 file changed
+8
-1
@@ -351,6 +351,12 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, Logging {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if let isSidebarHidden = windowState[UserInfoKey.isSidebarHidden] as? Bool, isSidebarHidden {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
|
||||
self.rootSplitViewController.preferredDisplayMode = .secondaryOnly
|
||||
}
|
||||
}
|
||||
|
||||
rebuildBackingStores(initialLoad: true)
|
||||
|
||||
@@ -2132,7 +2138,8 @@ private extension SceneCoordinator {
|
||||
return [
|
||||
UserInfoKey.readFeedsFilterState: isReadFeedsFiltered,
|
||||
UserInfoKey.containerExpandedWindowState: containerExpandedWindowState,
|
||||
UserInfoKey.readArticlesFilterState: readArticlesFilterState
|
||||
UserInfoKey.readArticlesFilterState: readArticlesFilterState,
|
||||
UserInfoKey.isSidebarHidden: rootSplitViewController.displayMode == .secondaryOnly
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user