mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix #547 by implementing state restoration in the sidebar and timeline view controllers.
This commit is contained in:
@@ -78,11 +78,17 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations, NSW
|
||||
// MARK: - Notifications
|
||||
|
||||
func window(_ window: NSWindow, willEncodeRestorableState state: NSCoder) {
|
||||
|
||||
saveSplitViewState(to: state)
|
||||
}
|
||||
|
||||
func window(_ window: NSWindow, didDecodeRestorableState state: NSCoder) {
|
||||
|
||||
restoreSplitViewState(from: state)
|
||||
|
||||
// Make sure the timeline view is first responder if possible, to start out viewing
|
||||
// whatever preserved selection might have been restored
|
||||
makeTimelineViewFirstResponder()
|
||||
}
|
||||
|
||||
@objc func refreshProgressDidChange(_ note: Notification) {
|
||||
|
||||
Reference in New Issue
Block a user