Add toast to ipc example command
This commit is contained in:
parent
31ccdb73a1
commit
5e7598689a
|
|
@ -124,7 +124,10 @@ app.whenReady().then(() => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// IPC test
|
// IPC test
|
||||||
ipcMain.on('ping', () => console.log('pong'))
|
ipcMain.on('ping', () => {
|
||||||
|
console.log('pong');
|
||||||
|
showToast('pong');
|
||||||
|
});
|
||||||
ipcMain.on('finish-setup', () => finishSetup())
|
ipcMain.on('finish-setup', () => finishSetup())
|
||||||
|
|
||||||
ipcMain.handle('get-version', () => app.getVersion())
|
ipcMain.handle('get-version', () => app.getVersion())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue