From dfb049f1fb6d8cbcaea0a0ac63de12581fd592fd Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 17 May 2024 19:20:49 +0200 Subject: [PATCH] Add notification (#15) --- src/main.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index c30827c..3ca565e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,4 @@ -import { BrowserWindow, app, dialog, ipcMain } from "electron"; +import { app, BrowserWindow, dialog, ipcMain, Notification } from "electron"; import { statSync } from "fs"; import { deleteFile, @@ -61,6 +61,13 @@ app.whenReady().then(() => { /** Send confirmation to user */ const confirmation = async (message: string) => { + // Send notification + new Notification({ + title: "Status", + body: message, + }).show(); + + // Open dialog await dialog.showMessageBox(win, { message }); };