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

Commit

Permalink
Pull Request comments are addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel committed Aug 15, 2023
1 parent cdfc037 commit 01cf106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct OptionToggleView: View {
@ObservedObject var option: Preferences.Option<Bool>
let onChange: ShieldToggleView.OnChangeCallback?

init(title: String, subtitle: String? = nil,
init(title: String, subtitle: String?,
option: Preferences.Option<Bool>, onChange: ShieldToggleView.OnChangeCallback? = nil) {
self.title = title
self.subtitle = subtitle
Expand Down
2 changes: 2 additions & 0 deletions Sources/Brave/Frontend/Settings/Tabs/PrivateTabsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ struct PrivateTabsView: View {
footer: privateBrowsingOnly.value ? Text("") : Text(Strings.TabsSettings.persistentPrivateBrowsingDescription)) {
if !privateBrowsingOnly.value {
OptionToggleView(title: Strings.TabsSettings.persistentPrivateBrowsingTitle,
subtitle: nil,
option: Preferences.Privacy.persistentPrivateBrowsing) { newValue in
Task { @MainActor in
if newValue {
Expand All @@ -88,6 +89,7 @@ struct PrivateTabsView: View {
switch localAuthenticationType {
case .faceID, .touchID, .pinCode:
OptionToggleView(title: browsingLockTitle,
subtitle: nil,
option: Preferences.Privacy.privateBrowsingLock)
case .noAuthentication:
Toggle(isOn: .constant(false)) {
Expand Down

0 comments on commit 01cf106

Please sign in to comment.