1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Got db and logger to working on Electron app

This commit is contained in:
Laurent Cozic
2017-11-04 11:26:49 +00:00
parent 86ea826e18
commit d601ed737b
6 changed files with 802 additions and 75 deletions

View File

@@ -59,18 +59,10 @@ class Setting extends BaseModel {
return this.modelSelectAll('SELECT * FROM settings').then((rows) => {
this.cache_ = [];
// Old keys - can be removed later
//const ignore = ['clientId', 'sync.onedrive.auth', 'syncInterval', 'todoOnTop', 'todosOnTop', 'todoFilter'];
for (let i = 0; i < rows.length; i++) {
let c = rows[i];
if (!this.keyExists(c.key)) continue;
//if (ignore.indexOf(c.key) >= 0) continue;
// console.info(c.key + ' = ' + c.value);
c.value = this.formatValue(c.key, c.value);
this.cache_.push(c);