remove async

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-11-23 18:38:03 +02:00
1 parent deaee41d61
commit 8a8549a9f2
1 file changed
+3 -3
+3 -3
View File
@@ -102,7 +102,7 @@ export abstract class BaseStore<T> extends Singleton {
return AppPaths.get("userData");
}
protected async saveToFile(model: T) {
protected saveToFile(model: T) {
logger.info(`[STORE]: SAVING ${this.path}`);
// todo: update when fixed https://github.com/sindresorhus/conf/issues/114
@@ -166,9 +166,9 @@ export abstract class BaseStore<T> extends Singleton {
}
}
protected async onModelChange(model: T) {
protected onModelChange(model: T) {
if (ipcMain) {
await this.saveToFile(model); // save config file
this.saveToFile(model); // save config file
broadcastMessage(this.syncRendererChannel, model);
} else {
broadcastMessage(this.syncMainChannel, model);