macOS: remove manual invalidateRestorableState()

pull/12464/head
Lukas 2026-04-25 18:05:19 +02:00
parent 4ceeba4851
commit 385376185c
No known key found for this signature in database
GPG Key ID: 1944A0A77B561220
1 changed files with 0 additions and 8 deletions

View File

@ -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() }
}
}