mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 02:52:39 -04:00
Revert
This commit is contained in:
parent
c2019c5002
commit
62b766064c
@ -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<NSManagedObjectID> else {
|
||||
return
|
||||
}
|
||||
navigation?.keepOnlyTabsBy(tabIds: tabsToKeep)
|
||||
navigation.keepOnlyTabsBy(tabIds: tabsToKeep)
|
||||
}
|
||||
.onReceive(appTerminates) { _ in
|
||||
// CMD+Q -> Quit Kiwix, this also closes the last window
|
||||
|
Loading…
x
Reference in New Issue
Block a user