Skip to content

Commit

Permalink
rebase + refactor sumo link + PR review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MattLichtenstein committed Jan 18, 2024
1 parent 3ce04d4 commit 9d759aa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ constexpr const char* MOZILLA_VPN_SUMO_URL =
constexpr const char* SUMO_DNS =
"https://support.mozilla.org/kb/how-do-i-change-my-dns-settings";

constexpr const char* SUMO_EXCLUDED_APPS =
"https://support.mozilla.org/kb/split-tunneling-app-permissions";

PRODBETAEXPR(QString, contactSupportUrl, "https://accounts.firefox.com/support",
"https://accounts.stage.mozaws.net/support")

Expand Down
3 changes: 1 addition & 2 deletions src/mozillavpn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1386,8 +1386,7 @@ void MozillaVPN::registerUrlOpenerLabels() {
[]() -> QString { return Constants::SUMO_DNS; });

uo->registerUrlLabel("sumoExcludedApps", []() -> QString {
return "https://support.mozilla.org/en-US/kb/"
"split-tunneling-app-permissions";
return Constants::SUMO_EXCLUDED_APPS;
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/translations/strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -973,10 +973,10 @@ helpSheets:
value: What are excluded apps?
comment: Header label for the excluded apps help sheet
excludedAppsBody1:
value: Excluded apps let you turn off VPN protection for specific apps, without turning off your device’s VPN protection.
value: Excluded apps let you turn off VPN protection for specific apps, without turning off VPN protection for your entire device.
comment: Body label for the excluded apps help sheet
excludedAppsBody2:
value: When you exclude an app, your IP address and approximate location will be exposed to it.
value: When you exclude an app, it will have access to your IP address and approximate location.
comment: Body label for the excluded apps help sheet
excludedAppsBody3:
value: You can use the settings under Settings > Privacy features to block ads, block trackers, and block malware, even on excluded apps.
Expand Down
5 changes: 2 additions & 3 deletions src/ui/screens/settings/appPermissions/ViewAppPermissions.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ MZViewBase {
onClicked: helpSheetLoader.active = true

accessibleName: MZI18n.GlobalHelp
Accessible.ignored: !visible

Image {
anchors.centerIn: parent
Expand Down Expand Up @@ -96,8 +95,8 @@ MZViewBase {
model: [
{type: MZHelpSheet.BlockType.Title, text: MZI18n.HelpSheetsExcludedAppsHeader},
{type: MZHelpSheet.BlockType.Text, text: MZI18n.HelpSheetsExcludedAppsBody1, margin: 8},
{type: MZHelpSheet.BlockType.Text, text:MZI18n.HelpSheetsExcludedAppsBody2, margin: 16},
{type: MZHelpSheet.BlockType.Text, text:MZI18n.HelpSheetsExcludedAppsBody3, margin: 16},
{type: MZHelpSheet.BlockType.Text, text: MZI18n.HelpSheetsExcludedAppsBody2, margin: 16},
{type: MZHelpSheet.BlockType.Text, text: MZI18n.HelpSheetsExcludedAppsBody3, margin: 16},
{type: MZHelpSheet.BlockType.PrimaryButton, text: MZI18n.HelpSheetsExcludedAppsCTA, margin: 16, action: () => {
close()
getStack().push("qrc:/ui/screens/settings/privacy/ViewPrivacy.qml")
Expand Down

0 comments on commit 9d759aa

Please sign in to comment.