mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
fix portable app restart
This commit is contained in:
6
menu.js
6
menu.js
@ -3,6 +3,7 @@ const path = require("path");
|
||||
|
||||
const { app, Menu, dialog } = require("electron");
|
||||
const is = require("electron-is");
|
||||
const { restart } = require("./providers/app-controls");
|
||||
|
||||
const { getAllPlugins } = require("./plugins/utils");
|
||||
const config = require("./config");
|
||||
@ -279,10 +280,7 @@ const mainMenuTemplate = (win) => {
|
||||
},
|
||||
{
|
||||
label: "Restart App",
|
||||
click: () => {
|
||||
app.relaunch();
|
||||
app.quit();
|
||||
},
|
||||
click: restart
|
||||
},
|
||||
{ role: "quit" },
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user