Skip to content

Commit 4b898bc

Browse files
author
Marcel Gerber
committed
Convert old preferences
1 parent 53777ee commit 4b898bc

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/Preferences.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@ define(function (require, exports, module) {
5454
}
5555
};
5656

57+
PreferencesManager.convertPreferences("com.adobe.theseus", { // main.js
58+
"enabled": "user theseus.enabled",
59+
"mode": "user theseus.mode"
60+
});
61+
PreferencesManager.convertPreferences("com.adobe.theseus.usage-reporting", { // Usage.js
62+
"user_id": "user theseus.usage.user_id",
63+
"last_agreement_shown": "user theseus.usage.last_agreement_shown",
64+
"usage_reporting_approved": "user theseus.usage.usage_reporting_approved",
65+
"research_contact_approved": "user theseus.usage.research_contact_approved",
66+
"research_contact_email": "user theseus.usage.research_contact_email"
67+
}, true);
68+
PreferencesManager.convertPreferences("com.adobe.theseus.update", { // Update.js
69+
"update_ignored": "theseus.update.update_ignored",
70+
"last_ignored_version": "theseus.update.last_ignored_version",
71+
"last_checked_at": "theseus.update.last_checked_at"
72+
}, true);
73+
5774
_.each(preferences.prefs, function (definition, key) {
5875
prefs.definePreference(key, definition.type, definition.value)
5976
.on("change", function () {

0 commit comments

Comments
 (0)