1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 01:19:59 +02:00

feat: Changed migration version to v2, b=no-bug, c=common

This commit is contained in:
mr. m 2025-07-02 11:04:04 +02:00
parent 3b8202f207
commit 974680e1a4
No known key found for this signature in database
GPG key ID: 928E01ED4C97749F

View file

@ -4,7 +4,7 @@
class nsZenUIMigration {
PREF_NAME = 'zen.ui.migration.version';
MIGRATION_VERSION = 1;
MIGRATION_VERSION = 2;
init(isNewProfile) {
if (!isNewProfile) {
@ -57,6 +57,9 @@ class nsZenUIMigration {
);
const theme = Services.prefs.getIntPref('layout.css.prefers-color-scheme.content-override', 0);
Services.prefs.setIntPref('zen.view.window.scheme', theme);
}
_migrateV2() {
Services.prefs.setIntPref('zen.theme.gradient-legacy-version', 0);
}
}