From 62b766064ce3ed4c91faeb0f56fbb4085626ba71 Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Fri, 4 Apr 2025 00:31:12 +0200 Subject: [PATCH] Revert --- App/App_macOS.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/App/App_macOS.swift b/App/App_macOS.swift index 7cdb2acd..54fb40a3 100644 --- a/App/App_macOS.swift +++ b/App/App_macOS.swift @@ -299,11 +299,11 @@ struct RootView: View { browser.pauseVideoWhenNotInPIP() navigation.deleteTab(tabID: tabID) } - .onReceive(keepOnlyTabs) { [weak navigation] notification in + .onReceive(keepOnlyTabs) {notification in guard let tabsToKeep = notification.userInfo?["tabIds"] as? Set else { return } - navigation?.keepOnlyTabsBy(tabIds: tabsToKeep) + navigation.keepOnlyTabsBy(tabIds: tabsToKeep) } .onReceive(appTerminates) { _ in // CMD+Q -> Quit Kiwix, this also closes the last window