Start work on saving main window state.

This commit is contained in:
Brent Simmons 2018-02-12 13:31:43 -08:00
parent 9adf047525
commit e773df33e3
2 changed files with 9 additions and 3 deletions

@ -499,9 +499,8 @@ private extension AppDelegate {
func saveState() { func saveState() {
if let inspectorWindowController = inspectorWindowController { inspectorWindowController?.saveState()
inspectorWindowController.saveState() mainWindowController?.saveState()
}
} }
func updateSortMenuItems() { func updateSortMenuItems() {

@ -75,6 +75,13 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
} }
} }
func saveState() {
// TODO: save width of split view and anything else that should be saved.
}
// MARK: Sidebar // MARK: Sidebar
func selectedObjectsInSidebar() -> [AnyObject]? { func selectedObjectsInSidebar() -> [AnyObject]? {