Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #8594: "Scan QR Code" from quick action to open a new tab #8621

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/Brave/Frontend/Browser/QuickActions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public class QuickActions: NSObject {
}

fileprivate func handleScanQR(withBrowserViewController bvc: BrowserViewController) {
// Open a new tab when Scan QR code is executed from quick long press action
bvc.openBlankNewTab(attemptLocationFieldFocus: false, isPrivate: false)
bvc.scanQRCode()
}
}