"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tabby-core/src/services/config.service.ts" between
tabby-1.0.181.tar.gz and tabby-1.0.183.tar.gz

About: Tabby is a modern cross-platform terminal emulator, SSH and serial client.

config.service.ts  (tabby-1.0.181):config.service.ts  (tabby-1.0.183)
skipping to change at line 208 skipping to change at line 208
async save (): Promise<void> { async save (): Promise<void> {
await lastValueFrom(this.ready$) await lastValueFrom(this.ready$)
if (!this._store) { if (!this._store) {
throw new Error('Cannot save an empty store') throw new Error('Cannot save an empty store')
} }
// Scrub undefined values // Scrub undefined values
let cleanStore = JSON.parse(JSON.stringify(this._store)) let cleanStore = JSON.parse(JSON.stringify(this._store))
cleanStore = await this.maybeEncryptConfig(cleanStore) cleanStore = await this.maybeEncryptConfig(cleanStore)
await this.platform.saveConfig(yaml.dump(cleanStore)) await this.platform.saveConfig(yaml.dump(cleanStore))
this.emitChange() this.emitChange()
this.hostApp.broadcastConfigChange(JSON.parse(JSON.stringify(this.store) ))
} }
/** /**
* Reads config YAML as string * Reads config YAML as string
*/ */
readRaw (): string { readRaw (): string {
return yaml.dump(this._store) return yaml.dump(this._store)
} }
/** /**
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)