fix portable app restart

This commit is contained in:
Araxeus
2022-02-24 20:41:59 +02:00
parent 407887254f
commit 704fba9aba
5 changed files with 12 additions and 24 deletions

View File

@ -2,6 +2,7 @@ const path = require("path");
const { Menu, nativeImage, Tray } = require("electron");
const { restart } = require("./providers/app-controls");
const config = require("./config");
const getSongControls = require("./providers/song-controls");
@ -58,12 +59,9 @@ module.exports.setUpTray = (app, win) => {
},
{
label: "Restart App",
click: () => {
app.relaunch();
app.quit();
},
click: restart
},
{ role: "quit" }
{ role: "quit" }
];
const trayMenu = Menu.buildFromTemplate(template);