From 385376185cf8d9f9545aec04cf643d7601300c81 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Sat, 25 Apr 2026 18:05:19 +0200 Subject: [PATCH] macOS: remove manual invalidateRestorableState() --- macos/Sources/Features/Update/UpdateDelegate.swift | 8 -------- 1 file changed, 8 deletions(-) diff --git a/macos/Sources/Features/Update/UpdateDelegate.swift b/macos/Sources/Features/Update/UpdateDelegate.swift index 72d54bd22..2459b8dfd 100644 --- a/macos/Sources/Features/Update/UpdateDelegate.swift +++ b/macos/Sources/Features/Update/UpdateDelegate.swift @@ -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() } - } }