aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-06-04 15:56:22 +0530
committerRoopesh Chander <roop@roopc.net>2019-06-04 20:34:37 +0530
commit13b802af2ce628bf9611d6addab6ccecfb9702b6 (patch)
tree58d1fc695d1e62bc35f257b3b16cc8d1081921a5
parentmacOS: Log view: Allow resizing horizontally (diff)
downloadwireguard-apple-13b802af2ce628bf9611d6addab6ccecfb9702b6.tar.xz
wireguard-apple-13b802af2ce628bf9611d6addab6ccecfb9702b6.zip
macOS: Save/restore the log window's size
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift4
1 files changed, 4 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift
index 6666c226..39ce6639 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift
@@ -193,6 +193,10 @@ class LogViewController: NSViewController {
updateLogEntriesTimer = nil
}
+ override func viewWillAppear() {
+ view.window?.setFrameAutosaveName(NSWindow.FrameAutosaveName("LogWindow"))
+ }
+
override func viewWillDisappear() {
super.viewWillDisappear()
stopUpdatingLogEntries()