mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-23 21:30:19 +00:00
macOS: remove manual invalidateRestorableState()
This commit is contained in:
@@ -31,12 +31,4 @@ extension UpdateDriver: SPUUpdaterDelegate {
|
||||
))
|
||||
return true
|
||||
}
|
||||
|
||||
func updaterWillRelaunchApplication(_ updater: SPUUpdater) {
|
||||
// When the updater is relaunching the application we want to get macOS
|
||||
// to invalidate and re-encode all of our restorable state so that when
|
||||
// we relaunch it uses it.
|
||||
NSApp.invalidateRestorableState()
|
||||
for window in NSApp.windows { window.invalidateRestorableState() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user