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

View File

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

View File

@ -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
func selectedObjectsInSidebar() -> [AnyObject]? {