mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-27 13:59:04 -04:00
Merge branch 'main' into 540-cmd-click-new-tab
This commit is contained in:
commit
402fb294f6
@ -157,6 +157,12 @@ struct RootView: View {
|
||||
navigation.currentItem = .reading
|
||||
browser.load(url: url)
|
||||
}
|
||||
.onReceive(NotificationCenter.default.publisher(for: NSWindow.willCloseNotification), perform: { output in
|
||||
guard let window = output.object as? NSWindow else { return }
|
||||
if window.isKeyWindow && window.isMainWindow { // if this is the very last window, close the app
|
||||
NSApp.terminate(nil)
|
||||
}
|
||||
})
|
||||
.onReceive(appTerminates) { _ in
|
||||
browser.persistAllTabIdsFromWindows()
|
||||
}.task {
|
||||
|
@ -65,7 +65,6 @@ targetTemplates:
|
||||
path: Support/Kiwix.entitlements
|
||||
properties:
|
||||
com.apple.security.app-sandbox: true
|
||||
com.apple.security.files.downloads.read-write: true
|
||||
com.apple.security.files.user-selected.read-only: true
|
||||
com.apple.security.network.client: true
|
||||
dependencies:
|
||||
@ -92,6 +91,9 @@ targets:
|
||||
Kiwix:
|
||||
templates:
|
||||
- ApplicationTemplate
|
||||
entitlements:
|
||||
properties:
|
||||
com.apple.security.files.downloads.read-write: true
|
||||
settings:
|
||||
base:
|
||||
MARKETING_VERSION: "3.3.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user