This commit is contained in:
Balazs Perlaki-Horvath 2025-02-28 16:07:11 +01:00 committed by Kelson
parent b966b9ff32
commit 9b65e7fc02
2 changed files with 2 additions and 3 deletions

View File

@ -611,8 +611,7 @@ final class BrowserViewModel: NSObject, ObservableObject,
)
actions.append(
UIAction(title: LocalString.common_dialog_button_open_in_new_tab,
image: UIImage(systemName: "doc.badge.plus")) { [weak self] _ in
guard let self else { return }
image: UIImage(systemName: "doc.badge.plus")) { _ in
Task { @MainActor in
NotificationCenter.openURL(url, inNewTab: true)
}

View File

@ -112,7 +112,7 @@ final class ActivityService {
if #available(iOS 17.2, *) {
// important to define a timestamp, this way iOS knows which updates
// can be dropped, if too many of them queues up
await activity.update(newContent, timestamp: .now)
await activity.update(newContent, timestamp: Date.now)
} else {
await activity.update(newContent)
}