mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Documents tab with file sharing
This commit is contained in:
@@ -52,6 +52,17 @@ struct URLBookmarkModel {
|
||||
}
|
||||
}
|
||||
|
||||
func removeBookmark(_ url: URL) {
|
||||
logger.info("removing bookmark for \(url.absoluteString)")
|
||||
|
||||
guard let defaults = CacheModel.shared.bookmarksDefaults else {
|
||||
logger.error("could not open bookmarks defaults")
|
||||
return
|
||||
}
|
||||
|
||||
defaults.removeObject(forKey: url.absoluteString)
|
||||
}
|
||||
|
||||
var bookmarkCreationOptions: URL.BookmarkCreationOptions {
|
||||
#if os(macOS)
|
||||
return [.withSecurityScope, .securityScopeAllowOnlyReadAccess]
|
||||
|
Reference in New Issue
Block a user