1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Fixed note sorting

This commit is contained in:
Laurent Cozic
2017-10-21 17:53:43 +01:00
parent ad1c0f3958
commit 2675a89dda
7 changed files with 30 additions and 16 deletions

View File

@ -70,16 +70,20 @@ class Setting extends BaseModel {
this.cache_.push(c);
}
const keys = this.keys();
let keyToValues = {};
for (let i = 0; i < keys.length; i++) {
keyToValues[keys[i]] = this.value(keys[i]);
}
this.dispatchUpdateAll();
});
}
this.dispatch({
type: 'SETTINGS_UPDATE_ALL',
settings: keyToValues,
});
static dispatchUpdateAll() {
const keys = this.keys();
let keyToValues = {};
for (let i = 0; i < keys.length; i++) {
keyToValues[keys[i]] = this.value(keys[i]);
}
this.dispatch({
type: 'SETTINGS_UPDATE_ALL',
settings: keyToValues,
});
}