1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Got Android version working again

This commit is contained in:
Laurent Cozic
2017-10-30 00:29:10 +00:00
parent 4ac86f52df
commit 5a7028bd11
10 changed files with 51 additions and 17 deletions

View File

@@ -21,6 +21,10 @@ class Setting extends BaseModel {
return output;
}
static keyExists(key) {
return key in this.metadata_;
}
static keys(publicOnly = false, appType = null) {
if (!this.keys_) {
this.keys_ = [];
@@ -56,12 +60,14 @@ class Setting extends BaseModel {
this.cache_ = [];
// Old keys - can be removed later
const ignore = ['clientId', 'sync.onedrive.auth', 'syncInterval', 'todoOnTop', 'todosOnTop'];
//const ignore = ['clientId', 'sync.onedrive.auth', 'syncInterval', 'todoOnTop', 'todosOnTop', 'todoFilter'];
for (let i = 0; i < rows.length; i++) {
let c = rows[i];
if (ignore.indexOf(c.key) >= 0) continue;
if (!this.keyExists(c.key)) continue;
//if (ignore.indexOf(c.key) >= 0) continue;
// console.info(c.key + ' = ' + c.value);