Migrate preference for existing users

This commit is contained in:
Cohee 2024-06-22 12:53:03 +03:00
parent a6e2692e52
commit aa16ac446d
1 changed files with 4 additions and 1 deletions

View File

@ -1564,7 +1564,10 @@ function loadPowerUserSettings(settings, data) {
}
// Clean up old/legacy settings
if (power_user.import_card_tags !== undefined) {
power_user.tag_import_setting = power_user.import_card_tags ? tag_import_setting.ASK : tag_import_setting.NONE;
delete power_user.import_card_tags;
}
$('#single_line').prop('checked', power_user.single_line);
$('#relaxed_api_urls').prop('checked', power_user.relaxed_api_urls);