mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix portable app restart
This commit is contained in:
8
tray.js
8
tray.js
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user