Added manual group changing, stbility improvements.

This commit is contained in:
Patrick Fic
2020-10-21 19:36:54 -07:00
parent 34e244783c
commit 3817f8615e
30 changed files with 362 additions and 42 deletions

View File

@@ -1,11 +1,14 @@
const { Notification } = require("electron");
const path = require("path");
const { store } = require("../electron-store");
function NewNotification(config) {
return Notification({
icon: path.join(__dirname, "../../src/assets/logo512.png"),
...config,
});
const enableNotifications = store.get("enableNotifications");
if (enableNotifications) {
Notification({
icon: path.join(__dirname, "../../src/assets/logo512.png"),
...config,
}).show();
}
}
exports.NewNotification = NewNotification;