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:
parent
3b8202f207
commit
974680e1a4
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
class nsZenUIMigration {
|
class nsZenUIMigration {
|
||||||
PREF_NAME = 'zen.ui.migration.version';
|
PREF_NAME = 'zen.ui.migration.version';
|
||||||
MIGRATION_VERSION = 1;
|
MIGRATION_VERSION = 2;
|
||||||
|
|
||||||
init(isNewProfile) {
|
init(isNewProfile) {
|
||||||
if (!isNewProfile) {
|
if (!isNewProfile) {
|
||||||
|
@ -57,6 +57,9 @@ class nsZenUIMigration {
|
||||||
);
|
);
|
||||||
const theme = Services.prefs.getIntPref('layout.css.prefers-color-scheme.content-override', 0);
|
const theme = Services.prefs.getIntPref('layout.css.prefers-color-scheme.content-override', 0);
|
||||||
Services.prefs.setIntPref('zen.view.window.scheme', theme);
|
Services.prefs.setIntPref('zen.view.window.scheme', theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
_migrateV2() {
|
||||||
Services.prefs.setIntPref('zen.theme.gradient-legacy-version', 0);
|
Services.prefs.setIntPref('zen.theme.gradient-legacy-version', 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue