fix settings migration

This commit is contained in:
LenAnderson 2024-01-01 18:12:28 +00:00
parent 30757dc92e
commit 65131ee095
1 changed files with 7 additions and 2 deletions

View File

@ -53,7 +53,7 @@ const defaultConfig = {
};
const defaultSettings = {
isEnabled: true,
isEnabled: false,
isCombined: false,
config: defaultConfig,
};
@ -129,7 +129,12 @@ const loadSettings = async () => {
isEnabled: extension_settings.quickReply.quickReplyEnabled ?? false,
isCombined: false,
isPopout: false,
config: extension_settings.quickReply.selectedPreset ?? extension_settings.quickReply.name ?? 'Default',
config: {
setList: [{
set: extension_settings.quickReply.selectedPreset ?? extension_settings.quickReply.name ?? 'Default',
isVisible: true,
}],
},
};
}
}