1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop: Fixes #10381: Fix plugin settings stored in settings.json are lost on startup (#10458)

This commit is contained in:
Henry Heino
2024-05-28 05:42:52 -07:00
committed by GitHub
parent b8caf08fac
commit 34092d8491
3 changed files with 57 additions and 4 deletions

View File

@ -2577,6 +2577,10 @@ class Setting extends BaseModel {
const keys = this.keys();
const valuesForFile: SettingValues = {};
for (const key of keys) {
// undefined => Delete from settings JSON file.
valuesForFile[key] = undefined;
}
const queries = [];
queries.push(`DELETE FROM settings WHERE key IN ("${keys.join('","')}")`);