macOS: Save/restore the log window's size

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2019-06-04 15:56:22 +05:30
parent 4cb775c72f
commit 1dccd39818
1 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,10 @@ class LogViewController: NSViewController {
updateLogEntriesTimer = nil updateLogEntriesTimer = nil
} }
override func viewWillAppear() {
view.window?.setFrameAutosaveName(NSWindow.FrameAutosaveName("LogWindow"))
}
override func viewWillDisappear() { override func viewWillDisappear() {
super.viewWillDisappear() super.viewWillDisappear()
stopUpdatingLogEntries() stopUpdatingLogEntries()