fix: ensure no migration when using new profiles

(cherry picked from commit c9b5de7529875e565897135b4ccd5b10965cd701)
This commit is contained in:
Alex Kontos
2023-08-21 18:57:53 +01:00
parent bf8f043095
commit e595620a1a

View File

@@ -221,11 +221,13 @@ export const WaterfoxGlue = {
"browser.migration.version",
128
);
const waterfoxUIVersion = 1;
const waterfoxUIVersion = lazy.PrefUtils.get(
"browser.migration.waterfox_version",
0
);
if (!Services.prefs.prefHasUserValue("browser.migration.waterfox_version")) {
// This is a new profile, nothing to migrate.
Services.prefs.setIntPref("browser.migration.waterfox_version", waterfoxUIVersion);
return;
}
async function enableTheme(id) {
const addon = await lazy.AddonManager.getAddonByID(id);