mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 14:09:34 +01:00
fix: send update db event on settings save
This commit is contained in:
@@ -145,6 +145,7 @@ class Settings {
|
||||
async _saveSettings(updateDateEdited = true) {
|
||||
if (updateDateEdited) this._settings.dateEdited = Date.now();
|
||||
await this._db.storage.write("settings", this._settings);
|
||||
EV.publish(EVENTS.databaseUpdated, this._settings);
|
||||
}
|
||||
}
|
||||
export default Settings;
|
||||
|
||||
Reference in New Issue
Block a user