Fix #547 by implementing state restoration in the sidebar and timeline view controllers.

This commit is contained in:
Daniel Jalkut
2019-02-15 13:38:07 -05:00
parent cd695848f0
commit c54d2f94cc
3 changed files with 50 additions and 0 deletions

View File

@@ -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) {