fix #6694 - correctly save downloaded config

This commit is contained in:
Qianfan Jiang
2022-08-01 00:39:52 +01:00
committed by Eugene
parent 697bbfcfe1
commit 04407b38c8
3 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ export class Application {
this.useBuiltinGraphics()
this.ptyManager.init(this)
ipcMain.on('app:save-config', async (event, config) => {
ipcMain.handle('app:save-config', async (event, config) => {
await saveConfig(config)
this.broadcastExcept('host:config-change', event.sender, config)
})