Skip to content

Commit

Permalink
[iOS] - Fix Leo popovers not dismissing sometimes & Updated Default M…
Browse files Browse the repository at this point in the history
…odel Text (uplift to 1.68.x) (#24548)

Uplift of #24537 (squashed) to beta
  • Loading branch information
brave-builds authored Jul 9, 2024
1 parent f8507cc commit fb5881b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ios/brave-ios/Sources/AIChat/AIChatStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ extension Strings {
"aichat.advancedSettingsDefaultModelTitle",
tableName: "BraveLeo",
bundle: .module,
value: "Default model for new conversations",
value: "Default Model",
comment: "The title for the settings to change default model for conversations"
)
public static let advancedSettingsHeaderTitle = NSLocalizedString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ struct BravePopoverView<Content: View & PopoverContentComponent>: UIViewControll
DispatchQueue.main.async {
controller.dismissPopover()
}
} else if context.coordinator.presentedViewController != nil {
DispatchQueue.main.async {
isPresented = false
}
}
return
}
Expand Down

0 comments on commit fb5881b

Please sign in to comment.