mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-19 18:07:58 +00:00
fix #6694 - correctly save downloaded config
This commit is contained in:
@@ -58,8 +58,8 @@ export class ElectronHostAppService extends HostAppService {
|
||||
this.electron.ipcRenderer.send('app:new-window')
|
||||
}
|
||||
|
||||
saveConfig (data: string): void {
|
||||
this.electron.ipcRenderer.send('app:save-config', data)
|
||||
async saveConfig (data: string): Promise<void> {
|
||||
await this.electron.ipcRenderer.invoke('app:save-config', data)
|
||||
}
|
||||
|
||||
emitReady (): void {
|
||||
|
@@ -109,7 +109,7 @@ export class ElectronPlatformService extends PlatformService {
|
||||
}
|
||||
|
||||
async saveConfig (content: string): Promise<void> {
|
||||
this.hostApp.saveConfig(content)
|
||||
await this.hostApp.saveConfig(content)
|
||||
}
|
||||
|
||||
getConfigPath (): string|null {
|
||||
|
Reference in New Issue
Block a user