Skip to content

Commit 356afa4

Browse files
authored
fix: restore window size properly (#53)
1 parent 9a9a09a commit 356afa4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

App/AppDelegate.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
3030
private func setupWindowDelegate() {
3131
for window in NSApplication.shared.windows where window.canBecomeMain {
3232
window.delegate = self
33+
// Enable automatic window frame persistence using autosave name
34+
// This ensures window size/position is restored across app launches
35+
if window.frameAutosaveName.isEmpty {
36+
window.setFrameAutosaveName("KasetMainWindow")
37+
}
3338
}
3439
}
3540

0 commit comments

Comments
 (0)