Skip to content

Commit

Permalink
code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxbolts committed Jan 4, 2024
1 parent 51f5de7 commit 5d0c10e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions nebula/ui/components/MZMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ Item {

sourceComponent: menuBar.rightButtonComponent
onItemChanged: {
//item.item is for right button components that might be inside a loder itself
if (item instanceof Text || item.item instanceof Text) {
//item.item is for right button components that might be inside a loader itself
if (item instanceof Text || (item instanceof Loader && item.item instanceof Text)) {
anchors.rightMargin = MZTheme.theme.windowMargin
}
else if(item instanceof MZIconButton || item.item instanceof MZIconButton) {
else if(item instanceof MZIconButton || (item instanceof Loader && item.item instanceof MZIconButton)) {
anchors.rightMargin = MZTheme.theme.windowMargin / 2
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ constexpr const char* APPLE_SUBSCRIPTIONS_URL =
constexpr const char* GOOGLE_SUBSCRIPTIONS_URL =
"https://play.google.com/store/account/subscriptions";

constexpr const char* SUMO_DNS = "https://support.mozilla.org/en-US/kb/"
"how-do-i-change-my-dns-settings";

#define PRODBETAEXPR(type, functionName, prod, beta) \
inline type functionName() { return Constants::inProduction() ? prod : beta; }

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

uo->registerUrlLabel("sumoDns", []() -> QString {
return "https://support.mozilla.org/en-US/kb/"
"how-do-i-change-my-dns-settings";
return Constants::SUMO_DNS;
});
}

Expand Down
1 change: 0 additions & 1 deletion src/ui/screens/settings/ViewDNSSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ MZViewBase {
onClicked: helpSheetLoader.active = true

accessibleName: MZI18n.GlobalHelp
Accessible.ignored: !visible

Image {
anchors.centerIn: parent
Expand Down

0 comments on commit 5d0c10e

Please sign in to comment.