avoid unnecessary config writes

This commit is contained in:
Eugene Pankov
2022-07-30 00:03:56 +02:00
parent 5bbb5e9210
commit 5d383eea04
5 changed files with 16 additions and 23 deletions

View File

@@ -38,12 +38,6 @@ export abstract class HostAppService {
abstract newWindow (): void
/**
* Notifies other windows of config file changes
*/
// eslint-disable-next-line @typescript-eslint/no-empty-function
broadcastConfigChange (_configStore: Record<string, any>): void { }
// eslint-disable-next-line @typescript-eslint/no-empty-function
emitReady (): void { }

View File

@@ -205,7 +205,6 @@ export class ConfigService {
cleanStore = await this.maybeEncryptConfig(cleanStore)
await this.platform.saveConfig(yaml.dump(cleanStore))
this.emitChange()
this.hostApp.broadcastConfigChange(JSON.parse(JSON.stringify(this.store)))
}
/**