diff --git a/Evergreen/AppDelegate.swift b/Evergreen/AppDelegate.swift index 2756f2dec..1e3062ac3 100644 --- a/Evergreen/AppDelegate.swift +++ b/Evergreen/AppDelegate.swift @@ -499,9 +499,8 @@ private extension AppDelegate { func saveState() { - if let inspectorWindowController = inspectorWindowController { - inspectorWindowController.saveState() - } + inspectorWindowController?.saveState() + mainWindowController?.saveState() } func updateSortMenuItems() { diff --git a/Evergreen/MainWindow/MainWindowController.swift b/Evergreen/MainWindow/MainWindowController.swift index 026f52c7a..46063dfaa 100644 --- a/Evergreen/MainWindow/MainWindowController.swift +++ b/Evergreen/MainWindow/MainWindowController.swift @@ -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]? {