Bug 1938344: Fix choose what to sync not showing on subsequent navigations r=markh,settings-reviewers,mossop

Differential Revision: https://phabricator.services.mozilla.com/D233195
This commit is contained in:
Sammy Khamis
2025-01-13 22:37:03 +00:00
parent 2546fd16d8
commit ac45be94e6
2 changed files with 23 additions and 5 deletions

View File

@@ -1146,12 +1146,17 @@ var gSync = {
},
_shouldShowSyncOffIndicator() {
const newSyncSetupEnabled =
NimbusFeatures.syncSetupFlow.getVariable("enabled");
if (newSyncSetupEnabled) {
NimbusFeatures.syncSetupFlow.recordExposureEvent();
// We only ever want to show the user the dot once, once they've clicked into the panel
// we do not show them the dot anymore
if (
Services.prefs.getBoolPref(
"identity.fxaccounts.toolbar.syncSetup.panelAccessed",
false
)
) {
return false;
}
return newSyncSetupEnabled;
return NimbusFeatures.syncSetupFlow.getVariable("enabled");
},
updateFxAPanel(state = {}) {