Add toast to ipc example command

This commit is contained in:
TheThomaas 2026-01-26 15:38:17 +01:00
parent 31ccdb73a1
commit 5e7598689a

View file

@ -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())