diff --git a/src/ui/screens/settings/ViewLanguage.qml b/src/ui/screens/settings/ViewLanguage.qml index ca85ffcef3..abb175ab1b 100644 --- a/src/ui/screens/settings/ViewLanguage.qml +++ b/src/ui/screens/settings/ViewLanguage.qml @@ -15,12 +15,17 @@ MZViewBase { objectName: "settingsLanguagesView" readonly property string telemetryScreenId : "language" - Component.onCompleted: Glean.impression.languageScreen.record({screen:telemetryScreenId}) + Component.onCompleted: { + console.log("Completed loading ViewLanguage"); + Glean.impression.languageScreen.record({screen:telemetryScreenId}); + console.log("And recorded telemetry"); + } //% "Language" _menuTitle : qsTrId("vpn.settings.language") function centerSelectedLanguage() { + console.log("Centering selected language") for (let idx = 0; idx < repeater.count; idx++) { const langItem = repeater.itemAt(idx); if (langItem.isSelectedLanguage) { @@ -86,6 +91,7 @@ MZViewBase { checked: MZSettings.languageCode === "" activeFocusOnTab: true onClicked: { + console.log("Radio button clicked") MZSettings.languageCode = "" } @@ -121,7 +127,10 @@ MZViewBase { model: searchBar.getProxyModel() - Component.onCompleted: vpnFlickable.centerSelectedLanguage() + Component.onCompleted: { + console.log("Completed loading repeater"); + vpnFlickable.centerSelectedLanguage(); + } delegate: ColumnLayout { id: del @@ -130,6 +139,7 @@ MZViewBase { property bool isSelectedLanguage: delRadio.checked function pushFocusToRadio() { + console.log("Pushing focus to radio"); delRadio.forceActiveFocus(); } diff --git a/src/ui/screens/settings/ViewPreferences.qml b/src/ui/screens/settings/ViewPreferences.qml index 16168c7d3c..0669b7f890 100644 --- a/src/ui/screens/settings/ViewPreferences.qml +++ b/src/ui/screens/settings/ViewPreferences.qml @@ -134,8 +134,11 @@ MZViewBase { imageRightSrc: "qrc:/nebula/resources/chevron.svg" imageRightMirror: MZLocalizer.isRightToLeft onClicked: { + console.log("Opening language settings") Glean.interaction.languageSelected.record({screen:telemetryScreenId}) + console.log("Telemetry recorded") stackview.push("qrc:/qt/qml/Mozilla/VPN/screens/settings/ViewLanguage.qml") + console.log("Screen pushed") } visible: MZLocalizer.hasLanguages }