aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift
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
commit1dccd398183bea8de0f3a43e054cd89b56754e7a (patch)
tree58d1fc695d1e62bc35f257b3b16cc8d1081921a5 /WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift
parentmacOS: Log view: Allow resizing horizontally (diff)
downloadwireguard-apple-1dccd398183bea8de0f3a43e054cd89b56754e7a.tar.xz
wireguard-apple-1dccd398183bea8de0f3a43e054cd89b56754e7a.zip
macOS: Save/restore the log window's size
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-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 6666c22..39ce663 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()