aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift
diff options
context:
space:
mode:
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift')
-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()