Skip to content

Commit

Permalink
fix: update output path of instance
Browse files Browse the repository at this point in the history
  • Loading branch information
QC2168 committed Jun 24, 2023
1 parent 49fb517 commit 9114c20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ ipcMain.handle('restore', async (event, id: SaveItemType | SaveItemType[]) => {
ipcMain.handle('addNode', (event, data) => addNode(data));
ipcMain.handle('removeNode', (event, i: number) => removeNode(i));
ipcMain.handle('editNode', (event, data, index) => editNode(data, index));
ipcMain.handle('editOutputPath', (event, output) => editOutputPath(output));
ipcMain.handle('editOutputPath', (event, output) => {
const cfg = editOutputPath(output);
return mibInstance.reloadConfig(cfg);
});
ipcMain.handle('rebootADB', async (event) => {
const result = await runBackupWorker({
task: 'rebootADB',
Expand Down

0 comments on commit 9114c20

Please sign in to comment.