mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
macos: invalidate restorable state whenever a terminal window is closed
This commit is contained in:
@ -190,6 +190,11 @@ class TerminalManager {
|
|||||||
let frame = focusedWindow.frame
|
let frame = focusedWindow.frame
|
||||||
Self.lastCascadePoint = NSPoint(x: frame.minX, y: frame.maxY)
|
Self.lastCascadePoint = NSPoint(x: frame.minX, y: frame.maxY)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// I don't think we strictly have to do this but if a window is
|
||||||
|
// closed I want to make sure that the app state is invalided so
|
||||||
|
// we don't reopen closed windows.
|
||||||
|
NSApplication.shared.invalidateRestorableState()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Close all windows, asking for confirmation if necessary.
|
/// Close all windows, asking for confirmation if necessary.
|
||||||
|
Reference in New Issue
Block a user